The Curve tool can rebuild when its children change
Adding Rebuliding and Rebuild to IObject3D
This commit is contained in:
parent
410c95d613
commit
ca438aba4b
30 changed files with 68 additions and 46 deletions
|
|
@ -44,7 +44,7 @@ using Newtonsoft.Json.Converters;
|
|||
|
||||
namespace MatterHackers.MatterControl.DesignTools
|
||||
{
|
||||
public class TextObject3D : Object3D, IRebuildable
|
||||
public class TextObject3D : Object3D, IPublicPropertyObject
|
||||
{
|
||||
public TextObject3D()
|
||||
{
|
||||
|
|
@ -85,7 +85,7 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
undoBuffer.AddAndDo(new ReplaceCommand(new List<IObject3D> { this }, new List<IObject3D> { newContainer }));
|
||||
}
|
||||
|
||||
public void Rebuild(UndoBuffer undoBuffer)
|
||||
public override void Rebuild(UndoBuffer undoBuffer)
|
||||
{
|
||||
var aabb = this.GetAxisAlignedBoundingBox();
|
||||
|
||||
|
|
@ -120,6 +120,9 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
// If the part was already created and at a height, maintain the height.
|
||||
PlatingHelper.PlaceMeshAtHeight(this, aabb.minXYZ.Z);
|
||||
}
|
||||
|
||||
// Let the base know it needs to rebuild
|
||||
base.Rebuild(undoBuffer);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue