{
ResultPtr aResult;
- if (!thePrs.owner().IsNull()) {
+ if (thePrs.object().get())
+ aResult = std::dynamic_pointer_cast<ModelAPI_Result>(thePrs.object());
+ else if (!thePrs.owner().IsNull()) {
ObjectPtr anObject = getSelectableObject(thePrs.owner());
aResult = std::dynamic_pointer_cast<ModelAPI_Result>(anObject);
}
- else {
- aResult = std::dynamic_pointer_cast<ModelAPI_Result>(thePrs.object());
- }
return aResult;
}
}
//********************************************************************
-void ModuleBase_ISelection::filterPreselectionOnEqualPoints
+void ModuleBase_ISelection::filterSelectionOnEqualPoints
(QList<ModuleBase_ViewerPrs>& theSelected)
{
QList<ModuleBase_ViewerPrs> aCandidatesToRemove;