From 490a2d118559ea9dfbb22eedb8075038743eb8ea Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 5 Jul 2018 12:26:58 +0300 Subject: [PATCH] Issue #2552: Intersection edition is impossible --- src/PartSet/PartSet_SketcherMgr.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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); } } } -- 2.39.2