From: nds Date: Thu, 7 Apr 2016 10:42:38 +0000 (+0300) Subject: Issue #1343. Improvement of Extrusion and Revolution operations: correction for case... X-Git-Tag: V_2.3.0~269 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=963e95a227383bb157dfc280a0d02bf004f0b849;p=modules%2Fshaper.git Issue #1343. Improvement of Extrusion and Revolution operations: correction for case: face selection(global) should not start a new Sketch creation. --- diff --git a/src/PartSet/PartSet_WidgetSketchCreator.cpp b/src/PartSet/PartSet_WidgetSketchCreator.cpp index ba9f9f124..131106e74 100644 --- a/src/PartSet/PartSet_WidgetSketchCreator.cpp +++ b/src/PartSet/PartSet_WidgetSketchCreator.cpp @@ -303,7 +303,13 @@ bool PartSet_WidgetSketchCreator::startSketchOperation(const QList(aValue->object()); + /// sketch should not started by object(face) selected as global. If Local face is selected, + /// sketch is started + if (aResult.get() && aValue->shape().get() && aResult->shape()->isEqual(aValue->shape())) return aSketchStarted; aSketchStarted = true;