Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6d93bc
)
Issue #3135: Provide automatic creation of Horizontal and Vertical constraints
author
vsv
<vsv@opencascade.com>
Fri, 31 Jan 2020 13:52:25 +0000
(16:52 +0300)
committer
vsv
<vsv@opencascade.com>
Fri, 31 Jan 2020 13:52:25 +0000
(16:52 +0300)
src/PartSet/PartSet_SketcherReentrantMgr.cpp
patch
|
blob
|
history
diff --git
a/src/PartSet/PartSet_SketcherReentrantMgr.cpp
b/src/PartSet/PartSet_SketcherReentrantMgr.cpp
index 0e098c8e6910591754b6d57b4deeb3a266633a41..ff241a14139cf873b2e947cac1fc6cb069da1725 100644
(file)
--- 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<ModuleBase_OperationFeature*>
(myWorkshop->currentOperation());
+ if (module()->sketchMgr()->isDragModeCreation()) {
+ if (aFOperation && myIsAutoConstraints)
+ addConstraints(aFOperation->feature());
+ return;
+ }
if (!myWorkshop->module()->getFeatureError(aFOperation->feature()).isEmpty())
return;