From: vsv Date: Thu, 10 Oct 2019 06:07:19 +0000 (+0300) Subject: Do not use feature for getting result. X-Git-Tag: V9_4_0b1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=310e6084d27832216db60524fd3cf152f726b60e;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());