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/mask | |
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/mask')
-rw-r--r-- | source/blender/editors/mask/mask_draw.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c index af9d3341e61..89881ad36e1 100644 --- a/source/blender/editors/mask/mask_draw.c +++ b/source/blender/editors/mask/mask_draw.c @@ -541,7 +541,7 @@ void ED_mask_draw_region(Mask *mask, ARegion *ar, const char draw_flag, const char draw_type, const int width_i, const int height_i, /* convert directly into aspect corrected vars */ const float aspx, const float aspy, - const short do_scale_applied, const short do_post_draw, + const short do_scale_applied, const short do_draw_cb, float stabmat[4][4], /* optional - only used by clip */ const bContext *C /* optional - only used when do_post_draw is set or called from clip editor */ ) @@ -601,10 +601,14 @@ void ED_mask_draw_region(Mask *mask, ARegion *ar, glMultMatrixf(stabmat); } + if (do_draw_cb) { + ED_region_draw_cb_draw(C, ar, REGION_DRAW_PRE_VIEW); + } + /* draw! */ draw_masklays(C, mask, draw_flag, draw_type, width, height); - if (do_post_draw) { + if (do_draw_cb) { ED_region_draw_cb_draw(C, ar, REGION_DRAW_POST_VIEW); } |