mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
bullet: fix BulletSoftBodyNode::get_node deadlock
This commit is contained in:
parent
3b4d12cb99
commit
3653413cd4
@ -134,7 +134,7 @@ BulletSoftBodyNodeElement BulletSoftBodyNode::
|
||||
get_node(int idx) const {
|
||||
LightMutexHolder holder(BulletWorld::get_global_lock());
|
||||
|
||||
nassertr(idx >=0 && idx < get_num_nodes(), BulletSoftBodyNodeElement::empty());
|
||||
nassertr(idx >= 0 && idx < _soft->m_nodes.size(), BulletSoftBodyNodeElement::empty());
|
||||
return BulletSoftBodyNodeElement(_soft->m_nodes[idx]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user