From b0d599305446d6542baefbf4bb7bcf5ae2de4633 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 24 Jul 2019 18:34:10 +0300 Subject: [PATCH] Issue #2970: Set size of Sketcher plane by user request --- src/PartSet/PartSet_WidgetSketchLabel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 75386d957..bb77a72ae 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -314,11 +314,8 @@ void PartSet_WidgetSketchLabel::updateByPlaneSelected(const ModuleBase_ViewerPrs isSetSizeOfView = false; } } - if (isSetSizeOfView) - aModule->sketchMgr()->previewSketchPlane()->setSizeOfView(aSizeOfView, true); + aModule->sketchMgr()->previewSketchPlane()->setSizeOfView(aSizeOfView, isSetSizeOfView); aModule->sketchMgr()->previewSketchPlane()->createSketchPlane(aSketch, myWorkshop); - if (isSetSizeOfView) - aModule->sketchMgr()->previewSketchPlane()->setSizeOfView(aSizeOfView, false); } // 2. if the planes were displayed, change the view projection -- 2.39.2