Fixing translation error in scale
Added a test
This commit is contained in:
parent
78b7ac0629
commit
16a1a61197
6 changed files with 67 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue