Made subtract and replace ensure contrast with the inserted part

This commit is contained in:
LarsBrubaker 2018-03-15 19:19:05 -07:00
parent d9290616c9
commit 1a63c26a83
3 changed files with 5 additions and 1 deletions

View file

@ -138,6 +138,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.View3D
item.Visible = true;
// set the mesh back to the child mesh
item.Mesh = item.Children.First().Mesh;
// and set the color back
item.Color = item.Children.First().Color;
}
}
}

View file

@ -252,6 +252,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.View3D
paint.Mesh = paintMesh;
paint.Color = paint.WorldColor().AdjustContrast(keepObjects.First().WorldColor(), 2).ToColor();
// now set it to the new solid color
paint.OutputType = PrintOutputTypes.Solid;
}