Making sure we don't executer rebuilds while in a separate thread from the UI
This commit is contained in:
parent
cc7144f00c
commit
1c9119568f
30 changed files with 218 additions and 128 deletions
|
|
@ -97,8 +97,11 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
// set the mesh to show the path
|
||||
this.Mesh = this.VertexSource.Extrude(Constants.PathPolygonsHeight);
|
||||
|
||||
rebuildLock.Dispose();
|
||||
Parent?.Invalidate(new InvalidateArgs(this, InvalidateType.Path));
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
rebuildLock.Dispose();
|
||||
Parent?.Invalidate(new InvalidateArgs(this, InvalidateType.Path));
|
||||
});
|
||||
return Task.CompletedTask;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue