diff --git a/PartPreviewWindow/View3D/Actions/MeshWrapperObject3D.cs b/PartPreviewWindow/View3D/Actions/MeshWrapperObject3D.cs index e21ac59b8..a968cf175 100644 --- a/PartPreviewWindow/View3D/Actions/MeshWrapperObject3D.cs +++ b/PartPreviewWindow/View3D/Actions/MeshWrapperObject3D.cs @@ -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; } } } diff --git a/PartPreviewWindow/View3D/Actions/SubtractAndReplace.cs b/PartPreviewWindow/View3D/Actions/SubtractAndReplace.cs index f354989cd..a53b76ecf 100644 --- a/PartPreviewWindow/View3D/Actions/SubtractAndReplace.cs +++ b/PartPreviewWindow/View3D/Actions/SubtractAndReplace.cs @@ -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; } diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index 6e7df2a84..11144110b 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit 6e7df2a849ad4028c4f451dea4b1fa220ef368e8 +Subproject commit 11144110b2f997f2b107ff7c598ec243a9f4109a