]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Do not use feature for getting result.
authorvsv <vsv@opencascade.com>
Thu, 10 Oct 2019 06:07:19 +0000 (09:07 +0300)
committervsv <vsv@opencascade.com>
Thu, 10 Oct 2019 06:07:19 +0000 (09:07 +0300)
src/ModuleBase/ModuleBase_ISelection.cpp

index 635991721be9e7b932cd8e82097bb06b396416fe..a44dd7d8a1c42cb9676c4b059f0a83f08be3c834 100644 (file)
@@ -57,12 +57,6 @@ ResultPtr ModuleBase_ISelection::getResult(const ModuleBase_ViewerPrsPtr& thePrs
   if (thePrs->object().get()) {
     ObjectPtr aObject = thePrs->object();
     aResult = std::dynamic_pointer_cast<ModelAPI_Result>(aObject);
-    if (!aResult.get()) {
-      FeaturePtr aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(aObject);
-      if (aFeature.get()) {
-        aResult = aFeature->firstResult();
-      }
-    }
   }
   else if (!thePrs->owner().IsNull()) {
     ObjectPtr anObject = getSelectableObject(thePrs->owner());