fixes #0002725: Random color for features in PartDesignNext

This commit is contained in:
wmayer
2018-06-10 18:37:53 +02:00
parent 617dfa0639
commit a8daaf4a45

View File

@@ -224,6 +224,11 @@ void Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) con
if (Gui::Selection().countObjectsOfType(PartDesign::Transformed::getClassTypeId()) -
Gui::Selection().countObjectsOfType(PartDesign::MultiTransform::getClassTypeId()) == 1 )
*item << "PartDesign_MultiTransform";
if (Gui::Selection().countObjectsOfType(App::DocumentObject::getClassTypeId()) > 0) {
*item << "Std_SetAppearance"
<< "Std_RandomColor";
}
}
}
}