Fixing translation error in scale

Added a test
This commit is contained in:
LarsBrubaker 2019-01-15 08:24:11 -08:00
parent 78b7ac0629
commit 16a1a61197
6 changed files with 67 additions and 8 deletions

View file

@ -104,11 +104,15 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
if (item.Parent != null)
{
var replaceItems = new List<IObject3D> { item };
IObject3D itemClone = item.Clone();
IObject3D replaceItem = item;
if (undoBuffer != null)
{
replaceItem = item.Clone();
}
var firstChild = new Object3D();
this.Children.Add(firstChild);
firstChild.Children.Add(itemClone);
firstChild.Children.Add(replaceItem);
var replace = new ReplaceCommand(replaceItems, new List<IObject3D> { this });
if (undoBuffer != null)