Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_graph/space_graph.c
| Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Lines | static void graph_main_region_draw_overlay(const bContext *C, ARegion *region) | ||||
| const SpaceGraph *sipo = CTX_wm_space_graph(C); | const SpaceGraph *sipo = CTX_wm_space_graph(C); | ||||
| /* Driver Editor's X axis is not time. */ | /* Driver Editor's X axis is not time. */ | ||||
| if (sipo->mode == SIPO_MODE_DRIVERS) { | if (sipo->mode == SIPO_MODE_DRIVERS) { | ||||
| return; | 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; | |||||
| View2D *v2d = ®ion->v2d; | View2D *v2d = ®ion->v2d; | ||||
| /* scrubbing region */ | /* scrubbing region */ | ||||
| ED_time_scrub_draw_current_frame(region, scene, sipo->flag & SIPO_DRAWTIME); | 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); | ||||
| ▲ Show 20 Lines • Show All 581 Lines • Show Last 20 Lines | |||||