[Bf-blender-cvs] [3bd6b80d65b] blender-v2.93-release: Fix T92515: Incorrect translation when scaling pose bones

Campbell Barton noreply at git.blender.org
Wed Nov 10 11:02:00 CET 2021


Commit: 3bd6b80d65baa7d4b17a1e3c0ad6d96d2d2d0429
Author: Campbell Barton
Date:   Wed Nov 3 11:14:22 2021 +1100
Branches: blender-v2.93-release
https://developer.blender.org/rB3bd6b80d65baa7d4b17a1e3c0ad6d96d2d2d0429

Fix T92515: Incorrect translation when scaling pose bones

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

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

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

diff --git a/source/blender/editors/transform/transform_mode.c b/source/blender/editors/transform/transform_mode.c
index ad0cb5f27aa..05a01dfe3f3 100644
--- a/source/blender/editors/transform/transform_mode.c
+++ b/source/blender/editors/transform/transform_mode.c
@@ -1019,6 +1019,11 @@ void ElementResize(TransInfo *t, TransDataContainer *tc, TransData *td, float ma
   }
 
   if (t->options & (CTX_OBJECT | CTX_POSE_BONE)) {
+    if (t->options & CTX_POSE_BONE) {
+      /* Without this, the resulting location of scaled bones aren't correct,
+       * especially noticeable scaling root or disconnected bones around the cursor, see T92515. */
+      mul_mat3_m4_v3(tc->poseobj->obmat, vec);
+    }
     mul_m3_v3(td->smtx, vec);
   }



More information about the Bf-blender-cvs mailing list