Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_action/space_action.c
| Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Lines | |||||
| /* add handlers, stuff you only do once or on area/region changes */ | /* add handlers, stuff you only do once or on area/region changes */ | ||||
| static void action_header_region_init(wmWindowManager *UNUSED(wm), ARegion *region) | static void action_header_region_init(wmWindowManager *UNUSED(wm), ARegion *region) | ||||
| { | { | ||||
| ED_region_header_init(region); | ED_region_header_init(region); | ||||
| } | } | ||||
| static void action_header_region_draw(const bContext *C, ARegion *region) | static void action_header_region_draw(const bContext *C, ARegion *region) | ||||
| { | { | ||||
| /* The anim context is not actually used, but this makes sure the action being displayed is up to | |||||
| * date. */ | |||||
| bAnimContext ac; | |||||
| ANIM_animdata_get_context(C, &ac); | |||||
| ED_region_header(C, region); | ED_region_header(C, region); | ||||
| } | } | ||||
| static void action_channel_region_listener(const wmRegionListenerParams *params) | static void action_channel_region_listener(const wmRegionListenerParams *params) | ||||
| { | { | ||||
| ARegion *region = params->region; | ARegion *region = params->region; | ||||
| wmNotifier *wmn = params->notifier; | wmNotifier *wmn = params->notifier; | ||||
| ▲ Show 20 Lines • Show All 610 Lines • Show Last 20 Lines | |||||