czaloj / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

btCollisionWorld::~btCollisionWorld() does not clear proxy pointers #158

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
btCollisionWorld::~btCollisionWorld() destroys the broadphase proxies, but does 
not clear the 
pointers to them (m_broadphaseHandle) in the collision objects. This is a 
problem if the collision 
objects are further used as it seems as if they were in a collision world. Just 
add a "collisionObject-
>setBroadphaseHandle(0);" in btCollisionWorld::~btCollisionWorld() (see my 
patch).

Original issue reported on code.google.com by ol...@arcor.de on 5 Dec 2008 at 8:48

Attachments:

GoogleCodeExporter commented 9 years ago

Good point, it has been fixed in the latest trunk:
http://code.google.com/p/bullet/source/detail?r=1556

Thanks again for your help,
Erwin

Original comment by erwin.coumans on 5 Dec 2008 at 11:08

GoogleCodeExporter commented 9 years ago

Original comment by erwin.coumans on 8 Dec 2008 at 6:03