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

@ -72,9 +72,9 @@ namespace MatterHackers.MatterControl.DesignTools
[JsonConverter(typeof(StringEnumConverter))]
public NamedTypeFace Font { get; set; } = new NamedTypeFace();
public override bool CanApply => true;
public override bool CanFlatten => true;
public override void Apply(UndoBuffer undoBuffer)
public override void Flatten(UndoBuffer undoBuffer)
{
// change this from a text object to a group
var newContainer = new GroupObject3D();