action("SHOW_CMD")->setEnabled(true);
}
- ResultPartPtr aPartRes = std::dynamic_pointer_cast<ModelAPI_ResultPart>(aObject);
- if (aPartRes) {
- action("SHOW_CMD")->setEnabled(true);
- }
-
if (!(hasParameter || hasFeature))
action("SHOW_ONLY_CMD")->setEnabled(true);
}
aList.append(action("SHOW_ONLY_CMD"));
aList.append(action("COLOR_CMD"));
myObjBrowserMenus[ModelAPI_ResultConstruction::group()] = aList;
- // Result part menu
- myObjBrowserMenus[ModelAPI_ResultPart::group()] = aList;
//-------------------------------------
// Result body menu
aList.clear();
myObjBrowserMenus[ModelAPI_ResultBody::group()] = aList;
// Group menu
myObjBrowserMenus[ModelAPI_ResultGroup::group()] = aList;
+ // Result part menu
+ myObjBrowserMenus[ModelAPI_ResultPart::group()] = aList;
//-------------------------------------
// Feature menu
aList.clear();