Fix the count

This commit is contained in:
MatterHackers 2023-07-01 14:28:37 -07:00
parent e459109f1d
commit c1c0d0cc85

View file

@ -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