From ac224a64f408fcc8f90f7ea0124cbe4b9ef1e811 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Wed, 10 Apr 2013 16:59:55 +0000 Subject: Fix #34941: Space.draw_handler_add now supports PRE_VIEW and POST_VIEW callbacks for more editors: timeline, graph, action, NLA, sequencer, image, clip. --- source/blender/editors/space_graph/space_graph.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/editors/space_graph') diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c index 734c0e6c479..98c26a447b7 100644 --- a/source/blender/editors/space_graph/space_graph.c +++ b/source/blender/editors/space_graph/space_graph.c @@ -242,6 +242,8 @@ static void graph_main_area_draw(const bContext *C, ARegion *ar) grid = UI_view2d_grid_calc(CTX_data_scene(C), v2d, unitx, V2D_GRID_NOCLAMP, unity, V2D_GRID_NOCLAMP, ar->winx, ar->winy); UI_view2d_grid_draw(v2d, grid, V2D_GRIDLINES_ALL); + ED_region_draw_cb_draw(C, ar, REGION_DRAW_PRE_VIEW); + /* draw data */ if (ANIM_animdata_get_context(C, &ac)) { /* draw ghost curves */ @@ -295,6 +297,10 @@ static void graph_main_area_draw(const bContext *C, ARegion *ar) UI_view2d_view_ortho(v2d); ANIM_draw_previewrange(C, v2d); + /* callback */ + UI_view2d_view_ortho(v2d); + ED_region_draw_cb_draw(C, ar, REGION_DRAW_POST_VIEW); + /* reset view matrix */ UI_view2d_view_restore(C); -- cgit v1.2.3