diff options
Diffstat (limited to 'source/blender/python/api2_2x/Bone.c')
-rw-r--r-- | source/blender/python/api2_2x/Bone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Bone.c b/source/blender/python/api2_2x/Bone.c index 0d6594e2aef..e00ccd00477 100644 --- a/source/blender/python/api2_2x/Bone.c +++ b/source/blender/python/api2_2x/Bone.c @@ -69,7 +69,7 @@ static double boneRoll_ToArmatureSpace(struct Bone *bone) Mat3Inv(imat, postmat); Mat3MulMat3(difmat, imat, premat); - roll = atan(difmat[2][0] / difmat[2][2]); + roll = atan2(difmat[2][0], difmat[2][2]); if (difmat[0][0] < 0.0){ roll += M_PI; } |