- bool aFound = findInSelection(
- anAttr->contextObject(), anAttr->value(), aGeomSelection, myWorkshop);
- if (!aFound)
- anIndicesToBeRemoved.insert(i);
+ //aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(anAttr->contextObject());
+ //if (!aFeature.get()) { // Feature can not be found as geometry selection
+ bool aFound = findInSelection(
+ anAttr->contextObject(), anAttr->value(), aGeomSelection, myWorkshop);
+ if (!aFound)
+ anIndicesToBeRemoved.insert(i);
+// }