From 435805081d8621e17e6db7f13b51d88af30ed693 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 14 Apr 2009 15:18:05 +0000 Subject: [PATCH] Forgot bool operator for OdeGeom --- panda/src/ode/odeGeom.cxx | 5 +++++ panda/src/ode/odeGeom.h | 1 + 2 files changed, 6 insertions(+) diff --git a/panda/src/ode/odeGeom.cxx b/panda/src/ode/odeGeom.cxx index 9f615487e5..fff8a38048 100755 --- a/panda/src/ode/odeGeom.cxx +++ b/panda/src/ode/odeGeom.cxx @@ -191,3 +191,8 @@ convert_to_quad_tree_space() const { return OdeQuadTreeSpace((dSpaceID)_id); } +OdeGeom:: +operator bool () const { + return (_id != NULL); +} + diff --git a/panda/src/ode/odeGeom.h b/panda/src/ode/odeGeom.h index aeef59af93..bde3679fb3 100755 --- a/panda/src/ode/odeGeom.h +++ b/panda/src/ode/odeGeom.h @@ -120,6 +120,7 @@ PUBLISHED: OdeSpace get_space() const; virtual void write(ostream &out = cout, unsigned int indent=0) const; + operator bool () const; INLINE int compare_to(const OdeGeom &other) const; OdeBoxGeom convert_to_box() const;