From 231af2df673f30904a8b939fbdb1eb4dbd7b28ef Mon Sep 17 00:00:00 2001 From: LarsBrubaker Date: Sat, 22 Dec 2018 07:53:26 -0800 Subject: [PATCH] Subtract and replace can handle multiple keep objects Also fixes it being applied to an existing subtract and replace --- .../View3D/Actions/SubtractAndReplaceObject3D.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MatterControlLib/PartPreviewWindow/View3D/Actions/SubtractAndReplaceObject3D.cs b/MatterControlLib/PartPreviewWindow/View3D/Actions/SubtractAndReplaceObject3D.cs index 489e706b0..147639ab6 100644 --- a/MatterControlLib/PartPreviewWindow/View3D/Actions/SubtractAndReplaceObject3D.cs +++ b/MatterControlLib/PartPreviewWindow/View3D/Actions/SubtractAndReplaceObject3D.cs @@ -137,7 +137,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.View3D } else // union into the current paint { - paintMesh = BooleanProcessing.Do(keep.obj3D.Mesh, keep.matrix, + paintMesh = BooleanProcessing.Do(paintMesh, keep.matrix, intersect, Matrix4X4.Identity, 0, reporter, amountPerOperation, percentCompleted, progressStatus, cancellationToken); }