Fix the count
This commit is contained in:
parent
e459109f1d
commit
c1c0d0cc85
1 changed files with 3 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.View3D
|
|||
if (paintObjects.Any()
|
||||
&& keepVisibleItems.Any())
|
||||
{
|
||||
var totalOperations = paintObjects.Count * keepVisibleItems.Count;
|
||||
var totalOperations = paintObjects.Count * keepVisibleItems.Count * 2;
|
||||
double amountPerOperation = 1.0 / totalOperations;
|
||||
double ratioCompleted = 0;
|
||||
|
||||
|
|
@ -259,6 +259,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.View3D
|
|||
ratioCompleted,
|
||||
cancellationToken);
|
||||
|
||||
ratioCompleted += amountPerOperation;
|
||||
|
||||
keepResultsMesh = BooleanProcessing.Do(keepResultsMesh,
|
||||
keepWorldMatrix,
|
||||
// point data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue