Upgrade Bullet to version 2.83.
[blender.git] / extern / bullet2 / src / BulletCollision / CollisionDispatch / btCollisionDispatcher.cpp
index 669d0b6b55e4c65316593c1bfaef01376937e1af..3b6913c0e1ecab8bcf07b6e4eefe1c81ff86a56a 100644 (file)
@@ -189,7 +189,7 @@ bool        btCollisionDispatcher::needsCollision(const btCollisionObject* body0,const
 
        if ((!body0->isActive()) && (!body1->isActive()))
                needsCollision = false;
-       else if (!body0->checkCollideWith(body1))
+       else if ((!body0->checkCollideWith(body1)) || (!body1->checkCollideWith(body0)))
                needsCollision = false;
        
        return needsCollision ;