From: vsv Date: Wed, 7 Oct 2020 16:23:07 +0000 (+0300) Subject: bos #20146:[CEA] Sketch's plane is not displayed on the right place X-Git-Tag: V9_6_0a2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d4621dc3a0d9df0cdb819a7d38aaf7226f2641e;p=modules%2Fshaper.git bos #20146:[CEA] Sketch's plane is not displayed on the right place --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 1b515d32b..ecc6f36d8 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -1096,6 +1096,8 @@ void PartSet_SketcherMgr::startSketch(ModuleBase_Operation* theOperation) myCurrentSketch = std::dynamic_pointer_cast(aFOperation->feature()); double aSizeOfView = 0; std::shared_ptr aCentralPoint; + // Reset size of view from previous launches + mySketchPlane->setSizeOfView(aSizeOfView, false, aCentralPoint); if (aFOperation->isEditOperation() && mySketchPlane->getDefaultSizeOfView(myCurrentSketch, aSizeOfView, aCentralPoint)) { mySketchPlane->setSizeOfView(aSizeOfView, true, aCentralPoint);