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
committerPhilipp Oeser <info@graphics-engineer.com>2021-11-10 12:19:27 +0300
commit3bd6b80d65baa7d4b17a1e3c0ad6d96d2d2d0429 (patch)
tree475c2da8f52b3b9f72439d701b4e189386bd62c8 /source/blender/editors
parent1180b4ff4a7adad1c68aa950c5da8967f31e51c6 (diff)
Fix T92515: Incorrect translation when scaling pose bones
Diffstat (limited to 'source/blender/editors')
-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 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);
}