From 72303e4f7d8784093b408b7bff0eab7fa6c0fb9b Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 5 Dec 2016 13:21:32 +0300 Subject: [PATCH] Issue #1820 Selection of two points in sketchPlane Create point coincident to Origin, click in empty place in viewer --- src/PartSet/PartSet_SketcherMgr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index f76d3318c..796b63a35 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -395,7 +395,11 @@ void PartSet_SketcherMgr::onMousePressed(ModuleBase_IViewWindow* theWnd, QMouseE } else if (isSketchOpe && isEditing) { // If selected another object commit current result bool aPrevLaunchingState = myIsEditLaunching; - myIsEditLaunching = true; + /// store editing state for Edit operation in order to do not clear highlight by restart + /// of edit operation. + /// Internal edit should not be stored as editing operation as the result will be a + /// creation operation, where previous selection should not be used(and will be cleared) + myIsEditLaunching = !myModule->sketchReentranceMgr()->isInternalEditActive(); aFOperation->commit(); myIsDragging = true; -- 2.39.2