Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/keyingsets.c
| Show First 20 Lines • Show All 473 Lines • ▼ Show 20 Lines | |||||
| static int keyingset_active_menu_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) | static int keyingset_active_menu_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) | ||||
| { | { | ||||
| uiPopupMenu *pup; | uiPopupMenu *pup; | ||||
| uiLayout *layout; | uiLayout *layout; | ||||
| /* call the menu, which will call this operator again, hence the canceled */ | /* call the menu, which will call this operator again, hence the canceled */ | ||||
| pup = UI_popup_menu_begin(C, op->type->name, ICON_NONE); | pup = UI_popup_menu_begin(C, op->type->name, ICON_NONE); | ||||
| layout = UI_popup_menu_layout(pup); | layout = UI_popup_menu_layout(pup); | ||||
| uiItemsEnumO(layout, "ANIM_OT_keying_set_active_set", "type"); | uiItemsEnumO(layout, "ANIM_OT_keying_set_active_set", "type", false); | ||||
| UI_popup_menu_end(C, pup); | UI_popup_menu_end(C, pup); | ||||
| return OPERATOR_INTERFACE; | return OPERATOR_INTERFACE; | ||||
| } | } | ||||
| static int keyingset_active_menu_exec(bContext *C, wmOperator *op) | static int keyingset_active_menu_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| ▲ Show 20 Lines • Show All 682 Lines • Show Last 20 Lines | |||||