Allow non-MeshContent providers to supply thumbnails
This commit is contained in:
parent
e6ac6d30ff
commit
cc2fa957d9
1 changed files with 12 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue