From: vsv Date: Wed, 4 May 2016 13:00:07 +0000 (+0300) Subject: Issue #1470: Do not edit external sketch objects X-Git-Tag: V_2.3.0~37 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=34c40f535e03bd7f1de4618bce6722a160b7b33b;p=modules%2Fshaper.git Issue #1470: Do not edit external sketch objects --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 6b54a5ecd..c897b72b5 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -696,7 +696,7 @@ void PartSet_SketcherMgr::launchEditing() FeaturePtr aFeature = myCurrentSelection.begin().key(); std::shared_ptr aSPFeature = std::dynamic_pointer_cast(aFeature); - if (aSPFeature) { + if (aSPFeature && (!aSPFeature->isExternal())) { myModule->editFeature(aSPFeature); } }