From c50717d42aba5c1a4904deceea97afb0efaa611b 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