From 2ae25bdba95c5547dadea900ac71f433b2ea81a9 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sun, 25 Jan 2009 11:45:40 +0000 Subject: [PATCH] Animato - Bugfix for Conversion of Object Rotations Yet another attempt to fix this problem (hopefully the last). Resolved a few typos (previous code was adjusting times not values). --- source/blender/blenkernel/intern/ipo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/blender/blenkernel/intern/ipo.c b/source/blender/blenkernel/intern/ipo.c index f397ae3a551..9fef1c657ca 100644 --- a/source/blender/blenkernel/intern/ipo.c +++ b/source/blender/blenkernel/intern/ipo.c @@ -735,11 +735,11 @@ static FCurve *icu_to_fcu (IpoCurve *icu, char *actname, char *constname) /* correct values for object rotation curves - they were degrees/10 */ // XXX for now, just make them into radians as RNA sets/reads directly in that form if ((icu->blocktype == ID_OB) && ELEM3(icu->adrcode, OB_ROT_X, OB_ROT_Y, OB_ROT_Z)) { - const float fac= M_PI / 180.0f; //10.0f * M_PI/180.0f; + const float fac= M_PI / 18.0f; //10.0f * M_PI/180.0f; - dst->vec[0][0] *= fac; - dst->vec[1][0] *= fac; - dst->vec[2][0] *= fac; + dst->vec[0][1] *= fac; + dst->vec[1][1] *= fac; + dst->vec[2][1] *= fac; } }