Fix T72936: Incorrect gizmo orientation with inherit rotation disabled
This commit is contained in:
parent
3ffb52d114
commit
c23b1de2cf
Notes:
blender-bot
2023-02-14 10:37:50 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83 Referenced by issue #72936, wrong direction of gizmo displays in the viewport for bones in the world space
|
@ -595,7 +595,9 @@ bool gimbal_axis(Object *ob, float gmat[3][3])
|
|||
if (pchan->parent) {
|
||||
float parent_mat[3][3];
|
||||
|
||||
copy_m3_m4(parent_mat, pchan->parent->pose_mat);
|
||||
copy_m3_m4(parent_mat,
|
||||
(pchan->bone->flag & BONE_HINGE) ? pchan->parent->bone->arm_mat :
|
||||
pchan->parent->pose_mat);
|
||||
mul_m3_m3m3(mat, parent_mat, tmat);
|
||||
|
||||
/* needed if object transformation isn't identity */
|
||||
|
|
Loading…
Reference in New Issue