Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_clip/clip_toolbar.c
| Show First 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | static void clip_panel_operator_redo(const bContext *C, Panel *pa) | ||||
| if (WM_operator_poll((bContext *)C, op->type)) { | if (WM_operator_poll((bContext *)C, op->type)) { | ||||
| uiBlock *block = uiLayoutGetBlock(pa->layout); | uiBlock *block = uiLayoutGetBlock(pa->layout); | ||||
| if (!WM_operator_check_ui_enabled(C, op->type->name)) | if (!WM_operator_check_ui_enabled(C, op->type->name)) | ||||
| uiLayoutSetEnabled(pa->layout, false); | uiLayoutSetEnabled(pa->layout, false); | ||||
| /* note, blockfunc is a default but->func, use Handle func to allow button callbacks too */ | /* note, blockfunc is a default but->func, use Handle func to allow button callbacks too */ | ||||
| uiBlockSetHandleFunc(block, ED_undo_operator_repeat_cb_evt, op); | UI_block_func_handle_set(block, ED_undo_operator_repeat_cb_evt, op); | ||||
| clip_panel_operator_redo_operator(C, pa, op); | clip_panel_operator_redo_operator(C, pa, op); | ||||
| } | } | ||||
| /* set region back */ | /* set region back */ | ||||
| CTX_wm_region_set((bContext *)C, ar); | CTX_wm_region_set((bContext *)C, ar); | ||||
| } | } | ||||
| Show All 12 Lines | |||||