Fixed entering edit when clicking "add" (large models could cause a race condition).
Made better progress indication while loading models on add
This commit is contained in:
parent
af16d96004
commit
ff9c13baa6
3 changed files with 44 additions and 24 deletions
|
|
@ -276,11 +276,16 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
if (reportProgress != null)
|
||||
{
|
||||
reportProgress(currentAction++ / (double)totalActionCount, "Creating Trace Data");
|
||||
if((currentAction % 256) == 0)
|
||||
{
|
||||
reportProgress(currentAction / (double)totalActionCount * .5, "Creating Trace Data");
|
||||
}
|
||||
currentAction++;
|
||||
}
|
||||
}
|
||||
|
||||
perMeshGroupInfo[meshGroupIndex].meshTraceableData.Add(BoundingVolumeHierarchy.CreateNewHierachy(allPolys));
|
||||
reportProgress(1, "Creating Trace Data");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue