[Bf-blender-cvs] [1c5f09e8a8f] master: Fix T93469: Image not moving in proportion to mouse

Richard Antalik noreply at git.blender.org
Mon Jun 13 20:16:41 CEST 2022


Commit: 1c5f09e8a8fcaeb85b0d423533ec5601473ab824
Author: Richard Antalik
Date:   Mon Jun 13 20:12:35 2022 +0200
Branches: master
https://developer.blender.org/rB1c5f09e8a8fcaeb85b0d423533ec5601473ab824

Fix T93469: Image not moving in proportion to mouse

Apply scale factor when preview aspect ratio is not 1:1.

===================================================================

M	source/blender/editors/transform/transform_convert_sequencer_image.c

===================================================================

diff --git a/source/blender/editors/transform/transform_convert_sequencer_image.c b/source/blender/editors/transform/transform_convert_sequencer_image.c
index fe87f0cc288..76c6632039a 100644
--- a/source/blender/editors/transform/transform_convert_sequencer_image.c
+++ b/source/blender/editors/transform/transform_convert_sequencer_image.c
@@ -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];



More information about the Bf-blender-cvs mailing list