Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_nla/space_nla.c
| Show First 20 Lines • Show All 283 Lines • ▼ Show 20 Lines | |||||
| static void nla_main_region_draw_overlay(const bContext *C, ARegion *region) | static void nla_main_region_draw_overlay(const bContext *C, ARegion *region) | ||||
| { | { | ||||
| /* draw entirely, view changes should be handled here */ | /* draw entirely, view changes should be handled here */ | ||||
| const SpaceNla *snla = CTX_wm_space_nla(C); | const SpaceNla *snla = CTX_wm_space_nla(C); | ||||
| const Scene *scene = CTX_data_scene(C); | const Scene *scene = CTX_data_scene(C); | ||||
| View2D *v2d = ®ion->v2d; | View2D *v2d = ®ion->v2d; | ||||
| /* scrubbing region */ | /* scrubbing region */ | ||||
| ED_time_scrub_draw_current_frame(region, scene, snla->flag & SNLA_DRAWTIME, true); | ED_time_scrub_draw_current_frame(region, scene, snla->flag & SNLA_DRAWTIME); | ||||
| /* scrollers */ | /* scrollers */ | ||||
| UI_view2d_scrollers_draw(v2d, NULL); | UI_view2d_scrollers_draw(v2d, NULL); | ||||
| } | } | ||||
| /* 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 nla_header_region_init(wmWindowManager *UNUSED(wm), ARegion *region) | static void nla_header_region_init(wmWindowManager *UNUSED(wm), ARegion *region) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 362 Lines • Show Last 20 Lines | |||||