Initialize new agg FileMissingMesh on load
This commit is contained in:
parent
c7dad3f889
commit
e57bf9daae
3 changed files with 7 additions and 1 deletions
|
|
@ -69,6 +69,7 @@ namespace MatterHackers.MatterControl
|
|||
using MatterHackers.MatterControl.PrinterControls.PrinterConnections;
|
||||
using MatterHackers.MatterControl.SetupWizard;
|
||||
using MatterHackers.PolygonMesh;
|
||||
using MatterHackers.PolygonMesh.Processors;
|
||||
using MatterHackers.RenderOpenGl;
|
||||
using MatterHackers.SerialPortCommunication;
|
||||
using MatterHackers.VectorMath;
|
||||
|
|
@ -760,6 +761,11 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
Object3D.AssetsPath = Path.Combine(ApplicationDataStorage.Instance.ApplicationLibraryDataPath, "Assets");
|
||||
|
||||
using (var meshSteam = AggContext.StaticData.OpenStream(Path.Combine("Stls", "missing.stl")))
|
||||
{
|
||||
Object3D.FileMissingMesh = StlProcessing.Load(meshSteam, CancellationToken.None);
|
||||
}
|
||||
|
||||
ScrollBar.DefaultMargin = new BorderDouble(right: 1);
|
||||
ScrollBar.ScrollBarWidth = 8 * GuiWidget.DeviceScale;
|
||||
ScrollBar.GrowThumbBy = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue