From: nds Date: Fri, 29 May 2015 11:34:47 +0000 (+0300) Subject: A fix to abort sketch operation if nothing is displayed in the viewer but values... X-Git-Tag: V_1.2.0~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e3f97194b94e7cb88e9f22fde473f7dd1f5a3505;p=modules%2Fshaper.git A fix to abort sketch operation if nothing is displayed in the viewer but values of the feature are valid Scenario: start line creation, click 1st point, click 2nd point, click circle feature. The line become visible(to origin) in the previous version. Currently it is aborted, nothing is shown. --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index e33202da3..30649eafe 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -597,7 +597,7 @@ void PartSet_Module::onFeatureTriggered() SessionPtr aMgr = ModelAPI_Session::get(); // 1. check whether the delete should be processed in the module ModuleBase_Operation* anOperation = myWorkshop->currentOperation(); - bool isNestedOp = PartSet_SketcherMgr::isNestedSketchOperation(anOperation); + bool isNestedOp = PartSet_SketcherMgr::isNestedCreateOperation(anOperation); if (isNestedOp) { // in case if in the viewer nothing is displayed, the create operation should not be // comitted even if all values of the feature are initialized