From 21bf13989f0a38d56dbe98334e9503623a976ea2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 4 Jul 2012 20:13:39 +0000 Subject: code cleanup: remove Python.h include from blenkernel. --- source/gameengine/Ketsji/KX_SoundActuator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/gameengine/Ketsji') diff --git a/source/gameengine/Ketsji/KX_SoundActuator.cpp b/source/gameengine/Ketsji/KX_SoundActuator.cpp index 91f6224e197..db91cea9074 100644 --- a/source/gameengine/Ketsji/KX_SoundActuator.cpp +++ b/source/gameengine/Ketsji/KX_SoundActuator.cpp @@ -433,7 +433,7 @@ PyObject* KX_SoundActuator::pyattr_get_sound(void *self, const struct KX_PYATTRI { KX_SoundActuator * actuator = static_cast (self); if (!actuator->m_sound.isNull()) - return AUD_getPythonFactory(&actuator->m_sound); + return (PyObject *)AUD_getPythonFactory(&actuator->m_sound); else Py_RETURN_NONE; } @@ -547,7 +547,7 @@ int KX_SoundActuator::pyattr_set_sound(void *self, const struct KX_PYATTRIBUTE_D if (!PyArg_Parse(value, "O", &sound)) return PY_SET_ATTR_FAIL; - AUD_Reference* snd = reinterpret_cast*>(AUD_getPythonSound(sound)); + AUD_Reference* snd = reinterpret_cast*>(AUD_getPythonSound((void *)sound)); if (snd) { actuator->m_sound = *snd; -- cgit v1.2.3