summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2020-07-12 07:46:14 +0100
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2020-07-12 07:46:14 +0100
commit2ea644fda46b9ff18d9f8367878e909698cf321b (patch)
treed80fd4b2cf7f157317d474a56e0f0617b654ad24 /modules
parent9678a41b19e142bbc4c00f761a3a5a0cf2d4458e (diff)
Set isScratchedSpaceOverrideModificator to false when removing a
RigidBodyBullet from a space.
Diffstat (limited to 'modules')
-rw-r--r--modules/bullet/rigid_body_bullet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/bullet/rigid_body_bullet.cpp b/modules/bullet/rigid_body_bullet.cpp
index 8ff27cda30..717c99c738 100644
--- a/modules/bullet/rigid_body_bullet.cpp
+++ b/modules/bullet/rigid_body_bullet.cpp
@@ -320,6 +320,7 @@ void RigidBodyBullet::set_space(SpaceBullet *p_space) {
// Clear the old space if there is one
if (space) {
can_integrate_forces = false;
+ isScratchedSpaceOverrideModificator = false;
// Remove all eventual constraints
assert_no_constraints();