Move printer initialize from widget into main initialize function

This commit is contained in:
John Lewin 2018-10-10 14:58:03 -07:00
parent 0fae401091
commit 5cb1804f94
3 changed files with 18 additions and 20 deletions

View file

@ -32,6 +32,7 @@ using System.IO;
using MatterHackers.Agg;
using MatterHackers.Agg.Image;
using MatterHackers.Agg.Platform;
using MatterHackers.Agg.UI;
using MatterHackers.Agg.VertexSource;
using MatterHackers.DataConverters3D;
using MatterHackers.MeshVisualizer;
@ -67,7 +68,10 @@ namespace MatterHackers.MatterControl
}
// Preload GL texture for 2D bed image and use MipMaps
ImageGlPlugin.GetImageGlPlugin(bedImage, createAndUseMipMaps: true);
UiThread.RunOnIdle(() =>
{
ImageGlPlugin.GetImageGlPlugin(bedImage, createAndUseMipMaps: true);
});
return bedImage;
}