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:
authorJoshua Leung <aligorith@gmail.com>2009-09-07 03:15:43 +0400
committerJoshua Leung <aligorith@gmail.com>2009-09-07 03:15:43 +0400
commit84448173c39317a71a3f9456b5885c3eb653d675 (patch)
tree87882c90b496ba815b08af78c0b9cb1c37f4ede0 /source/blender/blenlib/intern
parenta6466883250037a502ef2415dcb8e2acc3e9766f (diff)
2.5 - Rotation Order Tweaks
* Copy Rotation constraint should now work ok with this new code again. Previously, it was the only thing that really went beserk when the typos were still uncaught. * Fixed one other case of a potential case where typos would cause problems. * Made changing the rotation order setting perform conversions of the current rotation to an equivalent representation in the other orders/forms. This is done at RNA level, so maybe not that great for switching representations while animating?
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r--source/blender/blenlib/intern/arithb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/arithb.c b/source/blender/blenlib/intern/arithb.c
index 7a4aaa1a858..2e60fbba4c9 100644
--- a/source/blender/blenlib/intern/arithb.c
+++ b/source/blender/blenlib/intern/arithb.c
@@ -2835,10 +2835,10 @@ void EulOToQuat(float e[3], short order, float q[4])
double ti, tj, th, ci, cj, ch, si, sj, sh, cc, cs, sc, ss;
double a[3];
- if (R->parity) e[1] = -e[1]; // xxx watch it!
-
ti = e[i]/2; tj = e[j]/2; th = e[k]/2;
+ if (R->parity) e[j] = -e[j];
+
ci = cos(ti); cj = cos(tj); ch = cos(th);
si = sin(ti); sj = sin(tj); sh = sin(th);