Improve naming of eventArg variable
- Eliminate invadateType.InvalidateType == InvalidateType.Path
This commit is contained in:
parent
d02bd93633
commit
13d5e6f7f9
1 changed files with 7 additions and 7 deletions
|
|
@ -88,22 +88,22 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
Name = "Linear Extrude".Localize();
|
||||
}
|
||||
|
||||
public override async void OnInvalidate(InvalidateArgs invalidateType)
|
||||
public override async void OnInvalidate(InvalidateArgs eventArgs)
|
||||
{
|
||||
this.DebugDepth("Invalidate");
|
||||
|
||||
if (invalidateType.InvalidateType == InvalidateType.Path
|
||||
&& invalidateType.Source != this
|
||||
if (eventArgs.InvalidateType == InvalidateType.Path
|
||||
&& eventArgs.Source != this
|
||||
&& !RebuildLocked)
|
||||
{
|
||||
await Rebuild();
|
||||
base.OnInvalidate(new InvalidateArgs(this, InvalidateType.Mesh, invalidateType.UndoBuffer));
|
||||
base.OnInvalidate(new InvalidateArgs(this, InvalidateType.Mesh, eventArgs.UndoBuffer));
|
||||
}
|
||||
else if (invalidateType.InvalidateType == InvalidateType.Properties
|
||||
&& invalidateType.Source == this)
|
||||
else if (eventArgs.InvalidateType == InvalidateType.Properties
|
||||
&& eventArgs.Source == this)
|
||||
{
|
||||
await Rebuild();
|
||||
base.OnInvalidate(new InvalidateArgs(this, InvalidateType.Mesh, invalidateType.UndoBuffer));
|
||||
base.OnInvalidate(new InvalidateArgs(this, InvalidateType.Mesh, eventArgs.UndoBuffer));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue