[Bf-blender-cvs] [8dbca01531f] blender-v3.0-release: Fix T92515: Incorrect translation when scaling pose bones
Campbell Barton
noreply at git.blender.org
Wed Nov 3 01:49:41 CET 2021
Commit: 8dbca01531f2f225cdb85a84dd3d52cde29d8121
Author: Campbell Barton
Date: Wed Nov 3 11:14:22 2021 +1100
Branches: blender-v3.0-release
https://developer.blender.org/rB8dbca01531f2f225cdb85a84dd3d52cde29d8121
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 0e632e5f82d..5e0abbc1a08 100644
--- a/source/blender/editors/transform/transform_mode.c
+++ b/source/blender/editors/transform/transform_mode.c
@@ -1054,6 +1054,11 @@ void ElementResize(const TransInfo *t,
}
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