Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_region_menu_pie.c
| Show First 20 Lines • Show All 366 Lines • ▼ Show 20 Lines | static void ui_pie_menu_level_invoke(bContext *C, void *argN, void *arg2) | ||||
| } | } | ||||
| else { | else { | ||||
| RNA_warning("%s.%s not found", RNA_struct_identifier(ptr.type), lvl->propname); | RNA_warning("%s.%s not found", RNA_struct_identifier(ptr.type), lvl->propname); | ||||
| } | } | ||||
| UI_pie_menu_end(C, pie); | UI_pie_menu_end(C, pie); | ||||
| } | } | ||||
| /** | |||||
| * Set up data for defining a new pie menu level and add button that invokes it. | |||||
| */ | |||||
| void ui_pie_menu_level_create(uiBlock *block, | void ui_pie_menu_level_create(uiBlock *block, | ||||
| wmOperatorType *ot, | wmOperatorType *ot, | ||||
| const char *propname, | const char *propname, | ||||
| IDProperty *properties, | IDProperty *properties, | ||||
| const EnumPropertyItem *items, | const EnumPropertyItem *items, | ||||
| int totitem, | int totitem, | ||||
| wmOperatorCallContext context, | wmOperatorCallContext context, | ||||
| int flag) | int flag) | ||||
| ▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines | |||||