Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2018-11-16 15:58:11 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2018-11-16 15:59:16 +0300
commitec20d311da405b1150ca69c1ab462ff66630e4ec (patch)
treee5ac8e5b4ef921050e5294e3cadb85420a9cccba /source
parentcd9ab9d99eb42cc61d3220447322f1c9adad6d21 (diff)
Call PRE_VIEW and POST_VIEW draw callbacks in movie clip editor
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_clip/space_clip.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c
index 35aa9896d12..763bb1bcc88 100644
--- a/source/blender/editors/space_clip/space_clip.c
+++ b/source/blender/editors/space_clip/space_clip.c
@@ -1185,6 +1185,9 @@ static void clip_main_region_draw(const bContext *C, ARegion *ar)
/* data... */
movieclip_main_area_set_view2d(C, ar);
+ /* callback */
+ ED_region_draw_cb_draw(C, ar, REGION_DRAW_PRE_VIEW);
+
clip_draw_main(C, sc, ar);
/* TODO(sergey): would be nice to find a way to de-duplicate all this space conversions */
@@ -1230,6 +1233,9 @@ static void clip_main_region_draw(const bContext *C, ARegion *ar)
clip_draw_grease_pencil((bContext *)C, true);
}
+ /* callback */
+ ED_region_draw_cb_draw(C, ar, REGION_DRAW_POST_VIEW);
+
/* reset view matrix */
UI_view2d_view_restore(C);