From 310e6084d27832216db60524fd3cf152f726b60e Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 10 Oct 2019 09:07:19 +0300 Subject: [PATCH] Do not use feature for getting result. --- src/ModuleBase/ModuleBase_ISelection.cpp | 6 ------ 1 file changed, 6 deletions(-) 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()); -- 2.39.2