[#18557] incorrect alpha IPO behavior in game engine

from Louis-Dominique Dubeau (zenoparadox)
report contained fix, ancient bug from rev2.
This commit is contained in:
Campbell Barton 2009-04-21 01:59:14 +00:00
parent 720f7a8b69
commit 70dae5f493

@ -2876,7 +2876,7 @@ float IPO_GetFloatValue (Ipo *ipo, IPO_Channel channel, float ctime)
calc_ipo_spec(ipo, channel, &ctime); calc_ipo_spec(ipo, channel, &ctime);
/* unapply rotation hack, as gameengine doesn't use it */ /* unapply rotation hack, as gameengine doesn't use it */
if ((OB_ROT_X <= channel) && (channel <= OB_DROT_Z)) if ((ipo->blocktype == ID_OB) && (OB_ROT_X <= channel) && (channel <= OB_DROT_Z))
ctime *= (float)(M_PI_2/9.0); ctime *= (float)(M_PI_2/9.0);
/* return the value of this channel */ /* return the value of this channel */