Tracking: Fix wrong projection for post-draw pass
Allows to draw proportional editing circle at a proper location.
This commit is contained in:
parent
5cf87b4a8e
commit
4b1112c8c9
Notes:
blender-bot
2023-02-14 09:03:55 +01:00
Referenced by commit 7cb65a1e67
, Fix T84990: Proportional Editing falloff drawing for masks in MCE is broken
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue