From 2ea644fda46b9ff18d9f8367878e909698cf321b Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Sun, 12 Jul 2020 07:46:14 +0100 Subject: [PATCH] Set isScratchedSpaceOverrideModificator to false when removing a RigidBodyBullet from a space. --- modules/bullet/rigid_body_bullet.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/bullet/rigid_body_bullet.cpp b/modules/bullet/rigid_body_bullet.cpp index 8ff27cda30c6..717c99c7381d 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();