Tracking: Fix wrong projection for post-draw pass
Allows to draw proportional editing circle at a proper location.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user