Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2021-01-25 13:08:48 +0300
committerSergey Sharybin <sergey@blender.org>2021-01-25 13:10:42 +0300
commit7cb65a1e674c462393aadbb8c76283c4e3a8a16f (patch)
tree4222641ee4d140a7546558417970c14bb124db2d /source/blender/editors/space_clip
parentbe8b60aa20f1462ff85089560c944f4dc950b52d (diff)
Fix T84990: Proportional Editing falloff drawing for masks in MCE is broken
This got broken in 4b1112c8c96. 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.
Diffstat (limited to 'source/blender/editors/space_clip')
-rw-r--r--source/blender/editors/space_clip/space_clip.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c
index d4391fc3ff4..a5935f06927 100644
--- a/source/blender/editors/space_clip/space_clip.c
+++ b/source/blender/editors/space_clip/space_clip.c
@@ -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);