- //int aSize = mySelection.size();
- //foreach (GeomSelection aSelec, mySelection) {
- // setObject(aSelec.first, aSelec.second);
- //}
+ foreach (GeomSelection aSelec, mySelection) {
+ setObject(aSelec.first, aSelec.second);
+ }
+#else
+ // Store shape type
+ DataPtr aData = myFeature->data();
+ AttributeSelectionListPtr aSelectionListAttr =
+ std::dynamic_pointer_cast<ModelAPI_AttributeSelectionList>(aData->attribute(attributeID()));
+ aSelectionListAttr->setSelectionType(mySelectionType);