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:
authorBastien Montagne <montagne29@wanadoo.fr>2017-05-19 10:36:14 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-05-19 10:36:14 +0300
commit1f46da922a98c6badf6e2de13304358b3b0b7576 (patch)
treeb4e6a47524627ad6f7a925876eecbccf9cf542b6 /source/blender/editors/mask/mask_draw.c
parentf95828a0182acb7c1ba0fa8afccd6acdf23bc5c2 (diff)
parent4a04d7ae8930502037cd23dc94ed1bc9bc0043ac (diff)
Merge branch 'master' into blender2.8
Conflicts: source/blender/blenloader/intern/versioning_270.c source/blender/depsgraph/intern/depsgraph_tag.cc source/blender/editors/mask/mask_draw.c
Diffstat (limited to 'source/blender/editors/mask/mask_draw.c')
-rw-r--r--source/blender/editors/mask/mask_draw.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c
index 228a4db74e1..b3e6a369d90 100644
--- a/source/blender/editors/mask/mask_draw.c
+++ b/source/blender/editors/mask/mask_draw.c
@@ -784,13 +784,12 @@ void ED_mask_draw_region(Mask *mask, ARegion *ar,
/* apply transformation so mask editing tools will assume drawing from the origin in normalized space */
gpuPushMatrix();
-
+ gpuTranslate2f(x + xofs, y + yofs);
+ gpuScale2f(zoomx, zoomy);
if (stabmat) {
gpuMultMatrix(stabmat);
}
-
- gpuTranslate2f(x + xofs, y + yofs);
- gpuScale2f(maxdim * zoomx, maxdim * zoomy);
+ gpuScale2f(maxdim, maxdim);
if (do_draw_cb) {
ED_region_draw_cb_draw(C, ar, REGION_DRAW_PRE_VIEW);