From a3246a5ebe5297af279c1d4c183ef5051e59a9e3 Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Sun, 12 Jul 2020 07:53:32 +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 7109d61f764..f3e456fb97c 100644 --- a/modules/bullet/rigid_body_bullet.cpp +++ b/modules/bullet/rigid_body_bullet.cpp @@ -337,6 +337,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();