Fix crash in game engine IPO code, got out of sync after IPO cleanup, removed the...
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 11 Oct 2008 22:29:50 +0000 (22:29 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 11 Oct 2008 22:29:50 +0000 (22:29 +0000)
source/gameengine/Converter/KX_BlenderScalarInterpolator.cpp

index f58d60b026a56cee6b4bac22f92eb3942c51f97a..4d79febb7b4bab23fe250438726c9b8bb7c3299b 100644 (file)
 
 #include "KX_BlenderScalarInterpolator.h"
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-extern "C" int IPO_GetChannels(struct Ipo *ipo, short *channels);
-extern "C" float IPO_GetFloatValue(struct Ipo *ipo, /*IPO_Channel*/ short channel, float ctime);
-
+extern "C" {
+#include "DNA_ipo_types.h"
+#include "BKE_ipo.h"
+}
 
 static const int BL_MAX_CHANNELS = 32;
 
@@ -42,7 +39,7 @@ float BL_ScalarInterpolator::GetValue(float currentTime) const {
        return IPO_GetFloatValue(m_blender_ipo, m_channel, currentTime);
 }
 
-typedef short IPO_Channel;  
 
 BL_InterpolatorList::BL_InterpolatorList(struct Ipo *ipo) {
        IPO_Channel channels[BL_MAX_CHANNELS];