commit
2be61bdb3e
2 changed files with 5 additions and 5 deletions
|
|
@ -100,10 +100,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
if (newChildren.Count > 1)
|
||||
{
|
||||
// wrap the children in an object so they remain a group
|
||||
var group = new Object3D()
|
||||
{
|
||||
Name = this.Name + " - " + "Flattened".Localize()
|
||||
};
|
||||
var group = new Object3D();
|
||||
group.Children.Modify((groupList) =>
|
||||
{
|
||||
groupList.AddRange(newChildren);
|
||||
|
|
@ -113,6 +110,9 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
newChildren.Add(group);
|
||||
}
|
||||
|
||||
// add flatten to the name to show what happened
|
||||
newChildren[0].Name = this.Name + " - " + "Flattened".Localize();
|
||||
|
||||
// and replace us with the children
|
||||
var replaceCommand = new ReplaceCommand(new[] { this }, newChildren);
|
||||
if (undoBuffer != null)
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.View3D
|
|||
{
|
||||
Mesh = resultMesh
|
||||
};
|
||||
resultsItem.CopyProperties(first, Object3DPropertyFlags.All);
|
||||
resultsItem.CopyProperties(first, Object3DPropertyFlags.All & (~Object3DPropertyFlags.Matrix));
|
||||
this.Children.Add(resultsItem);
|
||||
|
||||
SourceContainer.Visible = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue