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