Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_data.c
| Show First 20 Lines • Show All 1,397 Lines • ▼ Show 20 Lines | |||||
| static int gpencil_layer_change_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(evt)) | static int gpencil_layer_change_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(evt)) | ||||
| { | { | ||||
| 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, "GPENCIL_OT_layer_change", "layer"); | uiItemsEnumO(layout, "GPENCIL_OT_layer_change", "layer", false); | ||||
| UI_popup_menu_end(C, pup); | UI_popup_menu_end(C, pup); | ||||
| return OPERATOR_INTERFACE; | return OPERATOR_INTERFACE; | ||||
| } | } | ||||
| static int gpencil_layer_change_exec(bContext *C, wmOperator *op) | static int gpencil_layer_change_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| bGPdata *gpd = CTX_data_gpencil_data(C); | bGPdata *gpd = CTX_data_gpencil_data(C); | ||||
| ▲ Show 20 Lines • Show All 2,258 Lines • Show Last 20 Lines | |||||