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
|
|
@ -58,7 +58,16 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
public double Depth { get; set; } = 20;
|
||||
public double Height { get; set; } = 10;
|
||||
|
||||
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