Update RenderType on settings change

This commit is contained in:
John Lewin 2017-07-05 12:45:42 -07:00
parent c2254c5a9c
commit d6829ff52d
4 changed files with 47 additions and 17 deletions

View file

@ -102,7 +102,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
this.externalMeshViewer.TrackballTumbleWidget.DrawGlContent += TrackballTumbleWidget_DrawGlContent;
buttonFactory = ApplicationController.Instance.Theme.BreadCrumbButtonFactory;
options = ApplicationController.Instance.Options.View3D;
options = ApplicationController.Instance.Printer.BedPlate.RendererOptions;
printer = ApplicationController.Instance.Printer;
printer.BedPlate.LoadedGCodeChanged += BedPlate_LoadedGCodeChanged;
@ -144,7 +145,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
1,
Agg.Transform.Affine.NewIdentity(),
1,
this.GetRenderType(),
0,
1,
new Vector2[]
@ -152,6 +152,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
ActiveSliceSettings.Instance.Helpers.ExtruderOffset(0),
ActiveSliceSettings.Instance.Helpers.ExtruderOffset(1)
},
this.GetRenderType,
MeshViewerWidget.GetMaterialColor);
}
@ -402,7 +403,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
private RenderType GetRenderType()
{
var options = ApplicationController.Instance.Options.View3D;
var options = ApplicationController.Instance.Printer.BedPlate.RendererOptions;
RenderType renderType = RenderType.Extrusions;
if (options.RenderMoves)