Refactoring SuspendRebuild to be RubuildLock
Marching squares has more data on how it expects to be processed (edge color)
This commit is contained in:
parent
ec28305b56
commit
3e49946e5a
44 changed files with 531 additions and 195 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue