Improving subtract object rendering

This commit is contained in:
Lars Brubaker 2019-02-13 10:26:02 -08:00
parent 76c4985111
commit ac03a4fcfd
16 changed files with 116 additions and 105 deletions

View file

@ -175,10 +175,9 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
#endregion // editable properties
public void DrawEditor(object sender, DrawEventArgs e)
public void DrawEditor(InteractionLayer layer, List<Object3DView> transparentMeshes, DrawEventArgs e, ref bool suppressNormalDraw)
{
if (sender is InteractionLayer layer
&& layer.Scene.SelectedItem != null
if (layer.Scene.SelectedItem != null
&& layer.Scene.SelectedItem.DescendantsAndSelf().Where((i) => i == this).Any())
{
layer.World.RenderAxis(ScaleAbout, this.WorldMatrix(), 30, 1);