Fix T84990: Proportional Editing falloff drawing for masks in MCE is broken

This got broken in 4b1112c8c9. A fix which will be consistent with image
editor is not obviously clear, so for the time being revert the change and
go back to state which was working for a long time.
This commit is contained in:
Sergey Sharybin 2021-01-25 11:08:48 +01:00
parent be8b60aa20
commit 7cb65a1e67
Notes: blender-bot 2023-02-14 03:46:57 +01:00
Referenced by issue #84990, Proportional Editing falloff drawing for masks in MCE is broken
1 changed files with 7 additions and 3 deletions

View File

@ -993,10 +993,14 @@ 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);
/* TODO(sergey): For being consistent with space image the projection needs to be configured
* the way how the commented out code does it. This works corrent for tracking data, but it
* causes wrong aspect correction for mask editor (see T84990). */
// 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();
// GPU_matrix_pop_projection();
/* reset view matrix */
UI_view2d_view_restore(C);