From: azv Date: Thu, 5 Jul 2018 09:26:58 +0000 (+0300) Subject: Issue #2552: Intersection edition is impossible X-Git-Tag: EDF_2018-1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=490a2d118559ea9dfbb22eedb8075038743eb8ea;p=modules%2Fshaper.git Issue #2552: Intersection edition is impossible --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 763985d84..f035706e1 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -735,10 +735,15 @@ void PartSet_SketcherMgr::launchEditing() if (!aSPFeature->isExternal()) myModule->editFeature(aSPFeature); else { - FeaturePtr aProjectionFeature = PartSet_Tools::findRefsToMeFeature(aFeature, + // need to edit a feature (Projection/IntersectionPoint), + // which produces current External feature + FeaturePtr aProducerFeature = PartSet_Tools::findRefsToMeFeature(aFeature, SketchPlugin_Projection::ID()); - if (aProjectionFeature.get()) - myModule->editFeature(aProjectionFeature); + if (!aProducerFeature.get()) + aProducerFeature = PartSet_Tools::findRefsToMeFeature(aFeature, + SketchPlugin_IntersectionPoint::ID()); + if (aProducerFeature.get()) + myModule->editFeature(aProducerFeature); } } }