Refactoring SuspendRebuild to be RubuildLock

Marching squares has more data on how it expects to be processed (edge color)
This commit is contained in:
Lars Brubaker 2018-06-20 17:16:38 -07:00
parent ec28305b56
commit 3e49946e5a
44 changed files with 531 additions and 195 deletions

View file

@ -117,7 +117,16 @@ namespace MatterHackers.MatterControl.DesignTools
public double EndingAngle { get; set; } = 360;
public double DiameterTop { get; set; } = 20;
public override void Rebuild(UndoBuffer undoBuffer)
public override void OnInvalidate(InvalidateArgs invalidateType)
{
if (invalidateType.InvalidateType == InvalidateType.Properties
&& invalidateType.Source == this)
{
Rebuild(null);
}
}
private void Rebuild(UndoBuffer undoBuffer)
{
this.DebugDepth("Rebuild");
using (RebuildLock())