Return the default image if rules prevent thumbnail generation

This commit is contained in:
John Lewin 2018-06-21 21:44:44 -07:00
parent 3326219114
commit 4ab59d0aa8

View file

@ -120,6 +120,11 @@ namespace MatterHackers.MatterControl
object3D = await (libraryItem as ILibraryObject3D)?.GetObject3D(null);
}
if (object3D == null)
{
return DefaultImage;
}
string thumbnailId = libraryItem.ID;
return GetThumbnail(object3D, thumbnailId, width, height);