]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3247: Unstable sketch
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Thu, 21 May 2020 07:17:06 +0000 (10:17 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Thu, 21 May 2020 07:17:06 +0000 (10:17 +0300)
Do not set flyout point for the Angle constraint right after the user clicked on it. This avoids jumping of a presentation from one sector to another.

src/PartSet/PartSet_SketcherMgr.cpp

index 2a494636f05c50321b0e369282019ad38e76ce7e..292c13596791564f3114ef9858f6b072ddc251a6 100644 (file)
@@ -468,19 +468,6 @@ void PartSet_SketcherMgr::onMousePressed(ModuleBase_IViewWindow* theWnd, QMouseE
       }
       myPreviousDrawModeEnabled = aViewer->enableDrawMode(false);
       launchEditing();
-      if (aFeature.get() != NULL) {
-        std::shared_ptr<SketchPlugin_Feature> aSPFeature =
-                  std::dynamic_pointer_cast<SketchPlugin_Feature>(aFeature);
-        if (aSPFeature.get() &&
-          (aSPFeature->getKind() == SketchPlugin_ConstraintRadius::ID() ||
-           aSPFeature->getKind() == SketchPlugin_ConstraintAngle::ID())) {
-          DataPtr aData = aSPFeature->data();
-          AttributePtr aAttr = aData->attribute(SketchPlugin_Constraint::FLYOUT_VALUE_PNT());
-          std::shared_ptr<GeomDataAPI_Point2D> aFPAttr =
-            std::dynamic_pointer_cast<GeomDataAPI_Point2D>(aAttr);
-          aFPAttr->setValue(myCurrentPoint.myCurX, myCurrentPoint.myCurY);
-        }
-      }
     } else if (isSketchOpe && isEditing) {
       // If selected another object commit current result
       bool aPrevLaunchingState = myIsEditLaunching;