From: vsv Date: Wed, 11 Sep 2019 14:35:06 +0000 (+0300) Subject: Use standard FitAll in sketcher if it doesn't have sub-objects X-Git-Tag: V9_4_0a2~4^2~110 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=36f9c0ec81cff3f38cfef8357063cbf994d19f87;p=modules%2Fshaper.git Use standard FitAll in sketcher if it doesn't have sub-objects --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 0f2b51f3b..774742d8a 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -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); }