mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
bullet: fix deadlock in get_manifold
This commit is contained in:
parent
fc172f8918
commit
e6e39cce0e
@ -1052,7 +1052,7 @@ BulletPersistentManifold *BulletWorld::
|
|||||||
get_manifold(int idx) const {
|
get_manifold(int idx) const {
|
||||||
LightMutexHolder holder(get_global_lock());
|
LightMutexHolder holder(get_global_lock());
|
||||||
|
|
||||||
nassertr(idx < get_num_manifolds(), NULL);
|
nassertr(idx < _dispatcher->getNumManifolds(), NULL);
|
||||||
|
|
||||||
btPersistentManifold *ptr = _dispatcher->getManifoldByIndexInternal(idx);
|
btPersistentManifold *ptr = _dispatcher->getManifoldByIndexInternal(idx);
|
||||||
return (ptr) ? new BulletPersistentManifold(ptr) : NULL;
|
return (ptr) ? new BulletPersistentManifold(ptr) : NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user