Fix T93469: Image not moving in proportion to mouse

Apply scale factor when preview aspect ratio is not 1:1.
This commit is contained in:
Richard Antalik 2022-06-13 20:12:35 +02:00
parent 1243c2bdae
commit 1c5f09e8a8
Notes: blender-bot 2023-02-14 01:52:41 +01:00
Referenced by issue #93469, Image moving faster than mouse when transforming
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ void recalcData_sequencer_image(TransInfo *t)
copy_v2_v2(translation, tdseq->orig_origin_position);
sub_v2_v2(translation, origin);
mul_v2_v2(translation, mirror);
translation[0] *= t->scene->r.yasp / t->scene->r.xasp;
transform->xofs = tdseq->orig_translation[0] - translation[0];
transform->yofs = tdseq->orig_translation[1] - translation[1];