]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Use standard FitAll in sketcher if it doesn't have sub-objects
authorvsv <vsv@opencascade.com>
Wed, 11 Sep 2019 14:35:06 +0000 (17:35 +0300)
committervsv <vsv@opencascade.com>
Wed, 11 Sep 2019 14:35:26 +0000 (17:35 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index 0f2b51f3b0c5e7dd43e32df5d7cbb0e9dbfdfc3c..774742d8a3e852a75805fa34718b539240124c4b 100644 (file)
@@ -2129,5 +2129,8 @@ void PartSet_Fitter::fitScene(Handle(V3d_View) theView)
       }
     }
   }
-  theView->FitAll(aBndBox, 0.01);
+  if (aBndBox.IsVoid())
+    theView->FitAll();
+  else
+    theView->FitAll(aBndBox, 0.01);
 }