do not show dialog of progress indicator for OCCT < 6.9.0

This commit is contained in:
wmayer
2018-08-17 08:10:16 +02:00
parent ab64ed068a
commit 6ea3ad3ed9

View File

@@ -420,7 +420,9 @@ void TaskCheckGeometryResults::goCheck()
Handle(Message_ProgressIndicator) theProgress = new BOPProgressIndicator(tr("Check geometry"), Gui::getMainWindow());
theProgress->NewScope("BOP check...");
#if OCC_VERSION_HEX >= 0x060900
theProgress->Show();
#endif
selectedCount = static_cast<int>(selection.size());
for (it = selection.begin(); it != selection.end(); ++it)
@@ -613,6 +615,8 @@ int TaskCheckGeometryResults::goBOPSingleCheck(const TopoDS_Shape& shapeIn, Resu
BOPAlgo_ArgumentAnalyzer BOPCheck;
#if OCC_VERSION_HEX >= 0x060900
BOPCheck.SetProgressIndicator(theProgress);
#else
Q_UNUSED(theProgress);
#endif
// BOPCheck.StopOnFirstFaulty() = true; //this doesn't run any faster but gives us less results.
BOPCheck.SetShape1(BOPCopy);