Fix T83801: UVEditor translation ignores "Pixel Coordinates" and aspect
ratio Caused by rB4eda60c2d82d. T83801 reported not moving in pixel space, but even without that toggle above commit caused the translation to not take apsect ratio into account properly [a translation of 1 on the x axis for example on an image with non 1:1 aspect ration caused the UVs to not end up in the same place on the next 'tile'] Above commit removed 'removeAspectRatio()' [the counterpart of applyAspectRatio -- which does the pixel coord correction internally] from 'applyTranslation()'. This was also reported in T83352 [which was closed by rBf3b08af24c9f -- but that only solved the displax in header, not the actual transformation] Now bring back 'removeAspectRatio()'. Maniphest Tasks: T83801 Differential Revision: https://developer.blender.org/D9869
This commit is contained in:
parent
8da62a9a86
commit
8d590e4b86
Notes:
blender-bot
2023-09-08 04:55:43 +02:00
Referenced by issue #83801, UV Editor translation ignores "Pixel Coordinates" and aspect ratio Referenced by issue #83216, Potential candidates for corrective releases
|
@ -377,6 +377,9 @@ static void applyTranslation(TransInfo *t, const int UNUSED(mval[2]))
|
|||
else {
|
||||
mul_v3_m3v3(global_dir, t->spacemtx, global_dir);
|
||||
}
|
||||
if (t->flag & T_2D_EDIT) {
|
||||
removeAspectRatio(t, global_dir);
|
||||
}
|
||||
}
|
||||
else {
|
||||
copy_v3_v3(global_dir, t->values);
|
||||
|
|
Loading…
Reference in New Issue