Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_action/space_action.c
| Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Lines | static void action_channel_region_init(wmWindowManager *wm, ARegion *ar) | ||||
| ar->v2d.scroll = V2D_SCROLL_BOTTOM; | ar->v2d.scroll = V2D_SCROLL_BOTTOM; | ||||
| UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_LIST, ar->winx, ar->winy); | UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_LIST, ar->winx, ar->winy); | ||||
| /* own keymap */ | /* own keymap */ | ||||
| keymap = WM_keymap_ensure(wm->defaultconf, "Animation Channels", 0, 0); | keymap = WM_keymap_ensure(wm->defaultconf, "Animation Channels", 0, 0); | ||||
| WM_event_add_keymap_handler_bb(&ar->handlers, keymap, &ar->v2d.mask, &ar->winrct); | WM_event_add_keymap_handler_bb(&ar->handlers, keymap, &ar->v2d.mask, &ar->winrct); | ||||
| WM_keymap_add_menu(keymap, "DOPESHEET_MT_specials_channels", WKEY, KM_PRESS, 0, 0); | |||||
| keymap = WM_keymap_ensure(wm->defaultconf, "Dopesheet Generic", SPACE_ACTION, 0); | keymap = WM_keymap_ensure(wm->defaultconf, "Dopesheet Generic", SPACE_ACTION, 0); | ||||
| WM_event_add_keymap_handler(&ar->handlers, keymap); | WM_event_add_keymap_handler(&ar->handlers, keymap); | ||||
| } | } | ||||
| static void action_channel_region_draw(const bContext *C, ARegion *ar) | static void action_channel_region_draw(const bContext *C, ARegion *ar) | ||||
| { | { | ||||
| /* draw entirely, view changes should be handled here */ | /* draw entirely, view changes should be handled here */ | ||||
| bAnimContext ac; | bAnimContext ac; | ||||
| ▲ Show 20 Lines • Show All 633 Lines • Show Last 20 Lines | |||||