Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-11-03 03:14:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-11-03 03:24:29 +0300
commit8dbca01531f2f225cdb85a84dd3d52cde29d8121 (patch)
treeab4614c1b971980c943e0f1144c3cbf4335af5f9
parent11392829adfebd95286586362323ed6a39c31a5c (diff)
Fix T92515: Incorrect translation when scaling pose bones
-rw-r--r--source/blender/editors/transform/transform_mode.c5
1 files changed, 5 insertions, 0 deletions
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);
}