]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3135: Provide automatic creation of Horizontal and Vertical constraints
authorvsv <vsv@opencascade.com>
Fri, 31 Jan 2020 13:52:25 +0000 (16:52 +0300)
committervsv <vsv@opencascade.com>
Fri, 31 Jan 2020 13:52:25 +0000 (16:52 +0300)
src/PartSet/PartSet_SketcherReentrantMgr.cpp

index 0e098c8e6910591754b6d57b4deeb3a266633a41..ff241a14139cf873b2e947cac1fc6cb069da1725 100644 (file)
@@ -359,11 +359,13 @@ void PartSet_SketcherReentrantMgr::onNoMoreWidgets(const std::string& thePreviou
     return;
   }
 
-  if (module()->sketchMgr()->isDragModeCreation())
-    return;
-
   ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
                                                        (myWorkshop->currentOperation());
+  if (module()->sketchMgr()->isDragModeCreation()) {
+    if (aFOperation && myIsAutoConstraints)
+      addConstraints(aFOperation->feature());
+    return;
+  }
   if (!myWorkshop->module()->getFeatureError(aFOperation->feature()).isEmpty())
     return;