diff --git a/panda/src/ode/odeUtil.cxx b/panda/src/ode/odeUtil.cxx index e8b1011b8f..edc2f8236c 100755 --- a/panda/src/ode/odeUtil.cxx +++ b/panda/src/ode/odeUtil.cxx @@ -23,7 +23,10 @@ #endif dReal OdeUtil::OC_infinity = dInfinity; + +#ifdef HAVE_PYTHON PyObject* OdeUtil::_python_callback = NULL; +#endif //////////////////////////////////////////////////////////////////// // Function: OdeUtil::get_connecting_joint diff --git a/panda/src/ode/odeUtil.h b/panda/src/ode/odeUtil.h index 1e9bfd04f6..654b7f1008 100755 --- a/panda/src/ode/odeUtil.h +++ b/panda/src/ode/odeUtil.h @@ -48,8 +48,10 @@ PUBLISHED: const int joint_type); static PT(OdeCollisionEntry) collide(const OdeGeom &geom1, const OdeGeom &geom2, const short int max_contacts = 150); +#ifdef HAVE_PYTHON static int collide2(const OdeGeom &geom1, const OdeGeom &geom2, - PyObject* arg, PyObject* callback); + PyObject* arg, PyObject* callback); +#endif static OdeGeom space_to_geom(const OdeSpace &space); static dReal OC_infinity;