diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-04-21 05:59:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-04-21 05:59:14 +0400 |
commit | 70dae5f49339a791c1c84d72047cde144e4e2843 (patch) | |
tree | c3049cff6bc656e42ccf0502f136736b9fd34256 /source | |
parent | 720f7a8b6900787734d11cff396945f693961250 (diff) |
[#18557] incorrect alpha IPO behavior in game engine
from Louis-Dominique Dubeau (zenoparadox)
report contained fix, ancient bug from rev2.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/ipo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/ipo.c b/source/blender/blenkernel/intern/ipo.c index 29db0ddd808..0077cf95262 100644 --- a/source/blender/blenkernel/intern/ipo.c +++ b/source/blender/blenkernel/intern/ipo.c @@ -2876,7 +2876,7 @@ float IPO_GetFloatValue (Ipo *ipo, IPO_Channel channel, float ctime) calc_ipo_spec(ipo, channel, &ctime); /* 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); /* return the value of this channel */ |