Skip to content

Commit

Permalink
fix progress reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyer committed Feb 16, 2024
1 parent cb45b33 commit 954bf6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/occt/module/vtkF3DOCCTReader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ int vtkF3DOCCTReader::RequestData(
this->Internals->ShapeMap[this->Internals->GetHash(label)] =
this->Internals->CreateShape(shape);

double progress = 0.5 + static_cast<double>(iLabel) / topLevelShapes.Length();
double progress = 0.5 + (static_cast<double>(iLabel) / topLevelShapes.Length()) / 2;
this->InvokeEvent(vtkCommand::ProgressEvent, &progress);
}

Expand Down

0 comments on commit 954bf6d

Please sign in to comment.