From: nds Date: Wed, 4 Oct 2017 06:28:03 +0000 (+0300) Subject: Preselection stayed by reentrant operation on fully constrained elements. Use-case: X-Git-Tag: V_2.9.0~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6d37824ccd870a620044241064b3fd1e844993a4;p=modules%2Fshaper.git Preselection stayed by reentrant operation on fully constrained elements. Use-case: 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. --- diff --git a/src/PartSet/PartSet_SketcherReentrantMgr.cpp b/src/PartSet/PartSet_SketcherReentrantMgr.cpp index c5a4e3cb1..5c4e10257 100644 --- a/src/PartSet/PartSet_SketcherReentrantMgr.cpp +++ b/src/PartSet/PartSet_SketcherReentrantMgr.cpp @@ -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();