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:
Diffstat (limited to 'source/blender/blenlib/intern/arithb.c')
-rw-r--r--source/blender/blenlib/intern/arithb.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/arithb.c b/source/blender/blenlib/intern/arithb.c
index 3f687a9f780..40cf72f4242 100644
--- a/source/blender/blenlib/intern/arithb.c
+++ b/source/blender/blenlib/intern/arithb.c
@@ -2215,6 +2215,15 @@ void Mat3ToEul(float tmat[][3], float *eul)
}
}
+void Mat4ToEul(float tmat[][4], float *eul)
+{
+ float tempMat[3][3];
+
+ Mat3CpyMat4 (tempMat, tmat);
+ Mat3Ortho(tempMat);
+ Mat3ToEul(tempMat, eul);
+}
+
void QuatToEul( float *quat, float *eul)
{
float mat[3][3];