Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_graph/space_graph.c
| Show First 20 Lines • Show All 305 Lines • ▼ Show 20 Lines | static void graph_main_region_draw(const bContext *C, ARegion *region) | ||||
| /* time-scrubbing */ | /* time-scrubbing */ | ||||
| ED_time_scrub_draw(region, scene, display_seconds, false); | ED_time_scrub_draw(region, scene, display_seconds, false); | ||||
| } | } | ||||
| static void graph_main_region_draw_overlay(const bContext *C, ARegion *region) | static void graph_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 SpaceGraph *sipo = CTX_wm_space_graph(C); | const SpaceGraph *sipo = CTX_wm_space_graph(C); | ||||
| /* Driver Editor's X axis is not time. */ | |||||
| if (sipo->mode == SIPO_MODE_DRIVERS) { | |||||
| return; | |||||
| } | |||||
| const Scene *scene = CTX_data_scene(C); | const Scene *scene = CTX_data_scene(C); | ||||
| const bool draw_vert_line = sipo->mode != SIPO_MODE_DRIVERS; | const bool draw_vert_line = sipo->mode != SIPO_MODE_DRIVERS; | ||||
| View2D *v2d = ®ion->v2d; | View2D *v2d = ®ion->v2d; | ||||
| /* scrubbing region */ | /* scrubbing region */ | ||||
| ED_time_scrub_draw_current_frame(region, scene, sipo->flag & SIPO_DRAWTIME, draw_vert_line); | ED_time_scrub_draw_current_frame(region, scene, sipo->flag & SIPO_DRAWTIME); | ||||
| /* scrollers */ | /* scrollers */ | ||||
| /* FIXME: args for scrollers depend on the type of data being shown. */ | /* FIXME: args for scrollers depend on the type of data being shown. */ | ||||
| UI_view2d_scrollers_draw(v2d, NULL); | UI_view2d_scrollers_draw(v2d, NULL); | ||||
| /* scale numbers */ | /* scale numbers */ | ||||
| { | { | ||||
| rcti rect; | rcti rect; | ||||
| ▲ Show 20 Lines • Show All 577 Lines • Show Last 20 Lines | |||||