3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-17 22:42:08 +02:00

Fix crash when teleporting into avatars with bubble active

This commit is contained in:
sabrina-shanman 2018-09-13 10:51:53 -07:00
parent 20cab87a17
commit f3d86cfc7d

View file

@ -286,6 +286,7 @@ void PhysicsEngine::reinsertObject(ObjectMotionState* object) {
void PhysicsEngine::processTransaction(PhysicsEngine::Transaction& transaction) {
// removes
for (auto object : transaction.objectsToRemove) {
bumpAndPruneContacts(object);
btRigidBody* body = object->getRigidBody();
if (body) {
removeDynamicsForBody(body);