Make flatten only copy appropriate properties by default

issue: MatterHackers/MCCentral#4229
Merge on align should not clear the colors that were on the objects

refactor apply and merge => flatten
This commit is contained in:
LarsBrubaker 2018-10-04 10:17:57 -07:00
parent 75d9afd855
commit efe03cb642
18 changed files with 37 additions and 37 deletions

View file

@ -45,9 +45,9 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.View3D
{
}
public override bool CanApply => true;
public override bool CanFlatten => true;
public override void Apply(UndoBuffer undoBuffer)
public override void Flatten(UndoBuffer undoBuffer)
{
var meshWrappers = this.Descendants().Where(o => o.OwnerID == this.ID).ToList();
@ -70,7 +70,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.View3D
parent.Children.Remove(meshWrapper);
}
base.Apply(undoBuffer);
base.Flatten(undoBuffer);
}
/// <summary>