Return the default image if rules prevent thumbnail generation
This commit is contained in:
parent
3326219114
commit
4ab59d0aa8
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue