From 56c3f4abe8b191d5255880ac2efe79558e6ed187 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 4 Apr 2016 08:19:54 +0300 Subject: [PATCH] Issue #1343. Improvement of Extrusion and Revolution operations: Bug correction: start Extrusion, select plane, abort Sketch, move over plane. Error message is about modification out of transaction. --- src/PartSet/PartSet_WidgetSketchCreator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/PartSet/PartSet_WidgetSketchCreator.cpp b/src/PartSet/PartSet_WidgetSketchCreator.cpp index 91093ed8e..d7130e5f6 100644 --- a/src/PartSet/PartSet_WidgetSketchCreator.cpp +++ b/src/PartSet/PartSet_WidgetSketchCreator.cpp @@ -328,6 +328,11 @@ bool PartSet_WidgetSketchCreator::focusTo() { if (isSelectionMode()) { activateSelectionControl(); + + SessionPtr aMgr = ModelAPI_Session::get(); + bool aIsOp = aMgr->isOperation(); + if (!aIsOp) + aMgr->startOperation(myFeature->getKind()); return true; } else { -- 2.39.2