Allow non-MeshContent providers to supply thumbnails

This commit is contained in:
John Lewin 2018-06-20 16:28:10 -07:00
parent e6ac6d30ff
commit cc2fa957d9

View file

@ -112,6 +112,18 @@ namespace MatterHackers.MatterControl.CustomWidgets
// Schedule work
this.ScheduleRaytraceOperation();
}
else
{
// Show processing image
this.SetItemThumbnail(generatingThumbnailIcon, raytracedImage: false);
// Ask the provider for a content specific thumbnail
await contentProvider.GetThumbnail(
libraryItem,
thumbWidth,
thumbHeight,
this.SetItemThumbnail);
}
}
}