- if (theIndex.row() < 3) {
- return myDocument->feature(PARTS_GROUP, myId, true);
- } else
- return featureDocument()->feature(FEATURES_GROUP, theIndex.row() - 3, true);
+ {
+ DocumentPtr aRootDoc = ModelAPI_PluginManager::get()->rootDocument();
+ return aRootDoc->feature(PARTS_GROUP, myId);
+ }