diff options
author | Sergey Sharybin <sergey@blender.org> | 2020-12-31 17:09:26 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2021-01-14 13:37:36 +0300 |
commit | 4b1112c8c96b3c18545afd6d302fec71a2713160 (patch) | |
tree | 85f5e9f886ed11902ab624c8bac49675df98a5ce /source/blender/editors/space_clip/space_clip.c | |
parent | 5cf87b4a8e809c64e8daeef72751bd8842a27ac0 (diff) |
Tracking: Fix wrong projection for post-draw pass
Allows to draw proportional editing circle at a proper location.
Diffstat (limited to 'source/blender/editors/space_clip/space_clip.c')
-rw-r--r-- | source/blender/editors/space_clip/space_clip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c index b17a0ba03d5..33c4bf7c255 100644 --- a/source/blender/editors/space_clip/space_clip.c +++ b/source/blender/editors/space_clip/space_clip.c @@ -987,7 +987,10 @@ static void clip_main_region_draw(const bContext *C, ARegion *region) } /* callback */ + GPU_matrix_push_projection(); + wmOrtho2(region->v2d.cur.xmin, region->v2d.cur.xmax, region->v2d.cur.ymin, region->v2d.cur.ymax); ED_region_draw_cb_draw(C, region, REGION_DRAW_POST_VIEW); + GPU_matrix_pop_projection(); /* reset view matrix */ UI_view2d_view_restore(C); |