From 3a7b87b178795352226643d265c181a17f988e48 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 15 Jun 2009 01:15:33 +0000 Subject: [PATCH] build without python --- panda/src/ode/odeUtil.cxx | 3 +++ panda/src/ode/odeUtil.h | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) 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;