mirror of
https://github.com/lubosz/overte.git
synced 2025-04-13 11:52:09 +02:00
only look in _activeStaticBodies when body is static
This commit is contained in:
parent
9e7b68fead
commit
228847b507
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ void PhysicsEngine::processTransaction(PhysicsEngine::Transaction& transaction)
|
|||
bumpAndPruneContacts(object);
|
||||
btRigidBody* body = object->getRigidBody();
|
||||
if (body) {
|
||||
if (_activeStaticBodies.size() > 0) {
|
||||
if (body->isStaticObject() && _activeStaticBodies.size() > 0) {
|
||||
std::set<btRigidBody*>::iterator itr = _activeStaticBodies.find(body);
|
||||
if (itr != _activeStaticBodies.end()) {
|
||||
_activeStaticBodies.erase(itr);
|
||||
|
|
Loading…
Reference in a new issue