Don't translate objects when flattening or removing operation
issue: MatterHackers/MCCentral#5224 Deleting subtract operation shifts objects
This commit is contained in:
parent
86a8603b20
commit
03d16e2dad
3 changed files with 4 additions and 4 deletions
|
|
@ -110,7 +110,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.View3D
|
|||
}
|
||||
|
||||
// and replace us with the children
|
||||
var replaceCommand = new ReplaceCommand(new List<IObject3D> { this }, newChildren);
|
||||
var replaceCommand = new ReplaceCommand(new List<IObject3D> { this }, newChildren, false);
|
||||
if (undoBuffer != null)
|
||||
{
|
||||
undoBuffer.AddAndDo(replaceCommand);
|
||||
|
|
@ -187,7 +187,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.View3D
|
|||
|
||||
// collapse our children into our parent
|
||||
// and replace us with the children
|
||||
var replaceCommand = new ReplaceCommand(new[] { this }, thisClone.Children.ToList());
|
||||
var replaceCommand = new ReplaceCommand(new[] { this }, thisClone.Children.ToList(), false);
|
||||
if (undoBuffer != null)
|
||||
{
|
||||
undoBuffer.AddAndDo(replaceCommand);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue