From: vsv Date: Fri, 31 Jan 2020 13:52:25 +0000 (+0300) Subject: Issue #3135: Provide automatic creation of Horizontal and Vertical constraints X-Git-Tag: V9_5_0a1~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f71ff8b376995110efd563a967e585a7a5dc8328;p=modules%2Fshaper.git Issue #3135: Provide automatic creation of Horizontal and Vertical constraints --- diff --git a/src/PartSet/PartSet_SketcherReentrantMgr.cpp b/src/PartSet/PartSet_SketcherReentrantMgr.cpp index 0e098c8e6..ff241a141 100644 --- a/src/PartSet/PartSet_SketcherReentrantMgr.cpp +++ b/src/PartSet/PartSet_SketcherReentrantMgr.cpp @@ -359,11 +359,13 @@ void PartSet_SketcherReentrantMgr::onNoMoreWidgets(const std::string& thePreviou return; } - if (module()->sketchMgr()->isDragModeCreation()) - return; - ModuleBase_OperationFeature* aFOperation = dynamic_cast (myWorkshop->currentOperation()); + if (module()->sketchMgr()->isDragModeCreation()) { + if (aFOperation && myIsAutoConstraints) + addConstraints(aFOperation->feature()); + return; + } if (!myWorkshop->module()->getFeatureError(aFOperation->feature()).isEmpty()) return;