Merge pull request #3083 from larsbrubaker/design_tools
Made subtract and replace ensure contrast with the inserted part
This commit is contained in:
commit
e2229bbd56
3 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 6e7df2a849ad4028c4f451dea4b1fa220ef368e8
|
||||
Subproject commit 11144110b2f997f2b107ff7c598ec243a9f4109a
|
||||
Loading…
Add table
Add a link
Reference in a new issue