summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-11-23 09:30:27 +0100
committerGitHub <noreply@github.com>2017-11-23 09:30:27 +0100
commit3fffe6ccb48c4fa76e1f3aa625fe6589e65558c4 (patch)
treee0316291eda6ec46654387c8815d90df098cddd8 /modules
parent62d86b15887371c59f99bfa37dbe2fcaf80478f7 (diff)
parent8de4df3fe2e95541f13f6ae84f8b8091387e8f31 (diff)
Merge pull request #13202 from AndreaCatania/master
Space override scratching when body is add to world
Diffstat (limited to 'modules')
-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 c82a1d1668..d8c8cab17a 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();
}
}