]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
bos #20146:[CEA] Sketch's plane is not displayed on the right place
authorvsv <vsv@opencascade.com>
Wed, 7 Oct 2020 16:23:07 +0000 (19:23 +0300)
committervsv <vsv@opencascade.com>
Wed, 7 Oct 2020 16:23:07 +0000 (19:23 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index 1b515d32b1f50bc35c7f4c6bf93a93d053ebf0d6..ecc6f36d80c3d01aa8d1fbc79d9030deb63c8721 100644 (file)
@@ -1096,6 +1096,8 @@ void PartSet_SketcherMgr::startSketch(ModuleBase_Operation* theOperation)
   myCurrentSketch = std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(aFOperation->feature());
   double aSizeOfView = 0;
   std::shared_ptr<GeomAPI_Pnt> 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);