Fix T51388: Mask moves when zoom is changed in the movie clip editor

Incorrect matrix space for stabilization.
This commit is contained in:
Sergey Sharybin 2017-05-17 14:50:32 +02:00
parent f674bc90e2
commit 47f8459ead
Notes: blender-bot 2023-02-14 07:00:21 +01:00
Referenced by issue #51388, Mask moves when zoom is changed in the movie clip editor
1 changed files with 3 additions and 4 deletions

View File

@ -834,13 +834,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 */
glPushMatrix();
glTranslatef(x + xofs, y + yofs, 0);
glScalef(zoomx, zoomy, 0);
if (stabmat) {
glMultMatrixf(stabmat);
}
glTranslatef(x + xofs, y + yofs, 0);
glScalef(maxdim * zoomx, maxdim * zoomy, 0);
glScalef(maxdim, maxdim, 0);
if (do_draw_cb) {
ED_region_draw_cb_draw(C, ar, REGION_DRAW_PRE_VIEW);