1
1

Tracking: Fix wrong projection for post-draw pass

Allows to draw proportional editing circle at a proper location.
This commit is contained in:
2020-12-31 15:09:26 +01:00
parent 5cf87b4a8e
commit 4b1112c8c9

View File

@@ -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);