mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 17:24:58 +02:00
Merge pull request #13988 from sabrina-shanman/crash_bubble-tp
Fix crash when teleporting into avatars with bubble active
This commit is contained in:
commit
28140fc0c0
1 changed files with 1 additions and 0 deletions
|
@ -286,6 +286,7 @@ void PhysicsEngine::reinsertObject(ObjectMotionState* object) {
|
||||||
void PhysicsEngine::processTransaction(PhysicsEngine::Transaction& transaction) {
|
void PhysicsEngine::processTransaction(PhysicsEngine::Transaction& transaction) {
|
||||||
// removes
|
// removes
|
||||||
for (auto object : transaction.objectsToRemove) {
|
for (auto object : transaction.objectsToRemove) {
|
||||||
|
bumpAndPruneContacts(object);
|
||||||
btRigidBody* body = object->getRigidBody();
|
btRigidBody* body = object->getRigidBody();
|
||||||
if (body) {
|
if (body) {
|
||||||
removeDynamicsForBody(body);
|
removeDynamicsForBody(body);
|
||||||
|
|
Loading…
Reference in a new issue