From 36f9c0ec81cff3f38cfef8357063cbf994d19f87 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 11 Sep 2019 17:35:06 +0300 Subject: [PATCH] Use standard FitAll in sketcher if it doesn't have sub-objects --- src/PartSet/PartSet_SketcherMgr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.39.2