]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2552: Intersection edition is impossible
authorazv <azv@opencascade.com>
Thu, 5 Jul 2018 09:26:58 +0000 (12:26 +0300)
committerazv <azv@opencascade.com>
Thu, 5 Jul 2018 09:26:58 +0000 (12:26 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index 763985d84cc045361a24aacafd7c86a4b50c75df..f035706e13305a1b851e2a2788c874a11018128e 100755 (executable)
@@ -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);
       }
     }
   }