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:
larsbrubaker 2014-10-24 17:27:38 -07:00
parent af16d96004
commit ff9c13baa6
3 changed files with 44 additions and 24 deletions

View file

@ -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");
}
}
}