Browse Source

build without python

David Rose 16 years ago
parent
commit
3a7b87b178
2 changed files with 6 additions and 1 deletions
  1. 3 0
      panda/src/ode/odeUtil.cxx
  2. 3 1
      panda/src/ode/odeUtil.h

+ 3 - 0
panda/src/ode/odeUtil.cxx

@@ -23,7 +23,10 @@
 #endif
 #endif
 
 
 dReal OdeUtil::OC_infinity = dInfinity;
 dReal OdeUtil::OC_infinity = dInfinity;
+
+#ifdef HAVE_PYTHON
 PyObject* OdeUtil::_python_callback = NULL;
 PyObject* OdeUtil::_python_callback = NULL;
+#endif
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: OdeUtil::get_connecting_joint
 //     Function: OdeUtil::get_connecting_joint

+ 3 - 1
panda/src/ode/odeUtil.h

@@ -48,8 +48,10 @@ PUBLISHED:
                                      const int joint_type);
                                      const int joint_type);
   static PT(OdeCollisionEntry) collide(const OdeGeom &geom1, const OdeGeom &geom2,
   static PT(OdeCollisionEntry) collide(const OdeGeom &geom1, const OdeGeom &geom2,
                                       const short int max_contacts = 150);
                                       const short int max_contacts = 150);
+#ifdef HAVE_PYTHON
   static int collide2(const OdeGeom &geom1, const OdeGeom &geom2,
   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 OdeGeom space_to_geom(const OdeSpace &space);
 
 
   static dReal OC_infinity;
   static dReal OC_infinity;