diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-10 20:59:55 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-10 20:59:55 +0400 |
commit | ac224a64f408fcc8f90f7ea0124cbe4b9ef1e811 (patch) | |
tree | 17bf93532573b7e0cf64c3284264b5fce649a40b /source/blender/editors/space_action/space_action.c | |
parent | 367de678895e7815c26a5668506b8ae24624742c (diff) |
Fix #34941: Space.draw_handler_add now supports PRE_VIEW and POST_VIEW callbacks
for more editors: timeline, graph, action, NLA, sequencer, image, clip.
Diffstat (limited to 'source/blender/editors/space_action/space_action.c')
-rw-r--r-- | source/blender/editors/space_action/space_action.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c index e0ca589c1fb..137ac367815 100644 --- a/source/blender/editors/space_action/space_action.c +++ b/source/blender/editors/space_action/space_action.c @@ -185,6 +185,8 @@ static void action_main_area_draw(const bContext *C, ARegion *ar) UI_view2d_grid_draw(v2d, grid, V2D_GRIDLINES_ALL); UI_view2d_grid_free(grid); + ED_region_draw_cb_draw(C, ar, REGION_DRAW_PRE_VIEW); + /* data */ if (ANIM_animdata_get_context(C, &ac)) { draw_channel_strips(&ac, saction, ar); @@ -204,6 +206,10 @@ static void action_main_area_draw(const bContext *C, ARegion *ar) /* preview range */ 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); |