Fixing [index] for long running children
Fixing index starting at 0
This commit is contained in:
parent
8c60ebd391
commit
e1ea70239b
3 changed files with 18 additions and 7 deletions
|
|
@ -39,7 +39,6 @@ using MatterHackers.VectorMath;
|
|||
|
||||
namespace MatterHackers.MatterControl.DesignTools.Operations
|
||||
{
|
||||
|
||||
public class ArrayLinearObject3D : ArrayObject3D
|
||||
{
|
||||
public ArrayLinearObject3D()
|
||||
|
|
@ -103,11 +102,21 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
}
|
||||
|
||||
SourceContainer.Visible = false;
|
||||
UiThread.RunOnIdle(() =>
|
||||
|
||||
void UnlockWhenDone()
|
||||
{
|
||||
rebuildLock.Dispose();
|
||||
Parent?.Invalidate(new InvalidateArgs(this, InvalidateType.Children));
|
||||
});
|
||||
if (this.Descendants().Where(c => c.RebuildLocked).Any())
|
||||
{
|
||||
UiThread.RunOnIdle(UnlockWhenDone, .05);
|
||||
}
|
||||
else
|
||||
{
|
||||
rebuildLock.Dispose();
|
||||
Parent?.Invalidate(new InvalidateArgs(this, InvalidateType.Children));
|
||||
}
|
||||
}
|
||||
|
||||
UiThread.RunOnIdle(UnlockWhenDone);
|
||||
return Task.CompletedTask;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue