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).
This commit is contained in:
Joshua Leung
2009-01-25 11:45:40 +00:00
parent af4270eb68
commit 2ae25bdba9

View File

@@ -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;
}
}