From 6d37824ccd870a620044241064b3fd1e844993a4 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 4 Oct 2017 09:28:03 +0300 Subject: [PATCH] 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. --- src/PartSet/PartSet_SketcherReentrantMgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.39.2