]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Preselection stayed by reentrant operation on fully constrained elements. Use-case:
authornds <nds@opencascade.com>
Wed, 4 Oct 2017 06:28:03 +0000 (09:28 +0300)
committernds <nds@opencascade.com>
Wed, 4 Oct 2017 06:28:03 +0000 (09:28 +0300)
1. create fully-constrained set of elements
2. Click "collinear"
3. Select two elements
4. Click on "horizontal"
Result: it is filled and sketch is overconstrained.

src/PartSet/PartSet_SketcherReentrantMgr.cpp

index c5a4e3cb1b5919da873604ff8f623e1ca257c5a9..5c4e1025735e16677eea0035593e502550291822 100644 (file)
@@ -486,6 +486,10 @@ bool PartSet_SketcherReentrantMgr::startInternalEdit(const std::string& thePrevi
                                                      (myWorkshop->currentOperation());
 
   if (aFOperation && module()->sketchMgr()->isNestedSketchOperation(aFOperation)) {
+    /// improvement to deselect automatically all eventual selected objects, when
+    // returning to the neutral point of the Sketcher or start internal edit
+    workshop()->selector()->clearSelection();
+
     aFOperation->setEditOperation(true/*, false*/);
     createInternalFeature();