Revert back to non-colorized part thumbnails

This commit is contained in:
John Lewin 2017-07-28 17:35:50 -07:00
parent 0cd2ffd093
commit 374c35fcb0
3 changed files with 5 additions and 6 deletions

View file

@ -32,7 +32,6 @@ using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using MatterHackers.Agg;
using MatterHackers.Agg.Image;
using MatterHackers.Agg.PlatformAbstract;
@ -245,7 +244,7 @@ namespace MatterHackers.MatterControl.CustomWidgets
ImageIO.LoadImageData(cachePath, thumbnail);
thumbnail.SetRecieveBlender(new BlenderPreMultBGRA());
return thumbnail.MultiplyWithPrimaryAccent();
return thumbnail;
}
return null;

View file

@ -121,14 +121,14 @@ namespace MatterHackers.MatterControl.CustomWidgets
&& contentProvider is MeshContentProvider)
{
// Before we have a thumbnail set to the content specific thumbnail
thumbnail = contentProvider.DefaultImage.AlphaToPrimaryAccent();
thumbnail = contentProvider.DefaultImage;
ApplicationController.Instance.QueueForGeneration(async () =>
{
// When this widget is dequeued for generation, validate before processing. Off-screen widgets should be skipped and will requeue next time they become visible
if (ListViewItemBase.WidgetOnScreen(this, this.LocalBounds))
{
SetItemThumbnail(generatingThumbnailIcon.AlphaToPrimaryAccent());
SetItemThumbnail(generatingThumbnailIcon);
// Then try to load a content specific thumbnail
await contentProvider.GetThumbnail(