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:
authorTon Roosendaal <ton@blender.org>2006-08-13 14:03:07 +0400
committerTon Roosendaal <ton@blender.org>2006-08-13 14:03:07 +0400
commitbdb12f23cf068680ffdd5675db6587dc31e5fc73 (patch)
treea1093327e655234970ecd1e4d80213e96e5f4773 /source/blender/blenlib/BLI_arithb.h
parente3d78dd4e1ed61091b6cedc8db6362f0f3c42021 (diff)
Bugfix #4843 revisited
This is a new incarnation of compatible_eul(), a function called: void Mat3ToCompatibleEul(float mat[][3], float *eul, float *oldrot) It uses the two euler extraction methods as added by Brecht a while ago, and checks for compatibility each, and then picks the best of the two based on minimal difference with 'oldrot'. Gives for rotation key inserting a much higher hitrate for OK eulers.
Diffstat (limited to 'source/blender/blenlib/BLI_arithb.h')
-rw-r--r--source/blender/blenlib/BLI_arithb.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/blenlib/BLI_arithb.h b/source/blender/blenlib/BLI_arithb.h
index b97bea8b6eb..1fab2c68458 100644
--- a/source/blender/blenlib/BLI_arithb.h
+++ b/source/blender/blenlib/BLI_arithb.h
@@ -157,6 +157,8 @@ Mat3ToEul(
void compatible_eul(float *eul, float *oldrot);
+void Mat3ToCompatibleEul(float mat[][3], float *eul, float *oldrot);
+
/**
* @section Quaternion arithmetic routines
*/
@@ -785,11 +787,7 @@ MinMax3(
float *max,
float *vec
);
- void
-Mat3ToEuln(
- float tmat[][3],
- float *eul
-);
+
void
SizeToMat3(
float *size,