From: vsv Date: Thu, 10 Oct 2019 06:07:19 +0000 (+0300) Subject: Do not use feature for getting result. X-Git-Tag: V9_5_0a1~167^2~54 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=57d6c4d0d88b2a3624fa7369588a15d289ddc973;p=modules%2Fshaper.git Do not use feature for getting result. --- diff --git a/src/ModuleBase/ModuleBase_ISelection.cpp b/src/ModuleBase/ModuleBase_ISelection.cpp index 635991721..a44dd7d8a 100644 --- a/src/ModuleBase/ModuleBase_ISelection.cpp +++ b/src/ModuleBase/ModuleBase_ISelection.cpp @@ -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(aObject); - if (!aResult.get()) { - FeaturePtr aFeature = std::dynamic_pointer_cast(aObject); - if (aFeature.get()) { - aResult = aFeature->firstResult(); - } - } } else if (!thePrs->owner().IsNull()) { ObjectPtr anObject = getSelectableObject(thePrs->owner());