Fix T92515: Incorrect translation when scaling pose bones
This commit is contained in:
parent
1180b4ff4a
commit
3bd6b80d65
Notes:
blender-bot
2023-02-14 06:32:27 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93 Referenced by issue #88449, Blender LTS: Maintenance Task 2.93 Referenced by issue #92515, Bones in transformed armatures (rotation and scale) don't scale properly to cursor
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue