Fix T51388: Mask moves when zoom is changed in the movie clip editor
Incorrect matrix space for stabilization.
This commit is contained in:
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
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue