[Bf-blender-cvs] [3a5d398aaf5] master: Fix T72024: Transform Snap: Alingn Rotation distorts object

mano-wii noreply at git.blender.org
Fri Nov 29 16:06:27 CET 2019


Commit: 3a5d398aaf552c5c5b8662d259bffe3287dc1992
Author: mano-wii
Date:   Fri Nov 29 12:06:02 2019 -0300
Branches: master
https://developer.blender.org/rB3a5d398aaf552c5c5b8662d259bffe3287dc1992

Fix T72024: Transform Snap: Alingn Rotation distorts object

Occurs in edit mode when object has no uniform scale.

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

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

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

diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index f3d26f85471..74fc1406795 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -5262,12 +5262,12 @@ static void applyTranslationValue(TransInfo *t, const float vec[3])
         copy_v3_v3(tvec, vec);
       }
 
+      mul_m3_v3(td->smtx, tvec);
+
       if (use_rotate_offset) {
         add_v3_v3(tvec, rotate_offset);
       }
 
-      mul_m3_v3(td->smtx, tvec);
-
       if (t->options & CTX_GPENCIL_STROKES) {
         /* grease pencil multiframe falloff */
         bGPDstroke *gps = (bGPDstroke *)td->extra;



More information about the Bf-blender-cvs mailing list