From e3f97194b94e7cb88e9f22fde473f7dd1f5a3505 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 29 May 2015 14:34:47 +0300 Subject: [PATCH] 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. --- src/PartSet/PartSet_Module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2