aboutsummaryrefslogtreecommitdiff
path: root/modules/bullet/space_bullet.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-11-23 09:30:27 +0100
committerGitHub2017-11-23 09:30:27 +0100
commit3fffe6ccb48c4fa76e1f3aa625fe6589e65558c4 (patch)
treee0316291eda6ec46654387c8815d90df098cddd8 /modules/bullet/space_bullet.cpp
parent62d86b15887371c59f99bfa37dbe2fcaf80478f7 (diff)
parent8de4df3fe2e95541f13f6ae84f8b8091387e8f31 (diff)
downloadgodot-3fffe6ccb48c4fa76e1f3aa625fe6589e65558c4.tar.gz
godot-3fffe6ccb48c4fa76e1f3aa625fe6589e65558c4.tar.zst
godot-3fffe6ccb48c4fa76e1f3aa625fe6589e65558c4.zip
Diffstat (limited to 'modules/bullet/space_bullet.cpp')
-rw-r--r--modules/bullet/space_bullet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/bullet/space_bullet.cpp b/modules/bullet/space_bullet.cpp
index c82a1d166..d8c8cab17 100644
--- a/modules/bullet/space_bullet.cpp
+++ b/modules/bullet/space_bullet.cpp
@@ -467,6 +467,7 @@ void SpaceBullet::add_rigid_body(RigidBodyBullet *p_body) {
dynamicsWorld->addCollisionObject(p_body->get_bt_rigid_body(), p_body->get_collision_layer(), p_body->get_collision_mask());
} else {
dynamicsWorld->addRigidBody(p_body->get_bt_rigid_body(), p_body->get_collision_layer(), p_body->get_collision_mask());
+ p_body->scratch_space_override_modificator();
}
}