summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-13 17:59:31 +0200
committerGitHub <noreply@github.com>2020-07-13 17:59:31 +0200
commit6f0edf5bc9d9608f0d0017495a1dc880f401b629 (patch)
tree6c3e5b65d68f6db6ba8762928560c93b1958c061
parent07db4d57d66747061a95e0d7480f8190772be564 (diff)
parent2ea644fda46b9ff18d9f8367878e909698cf321b (diff)
Merge pull request #40308 from madmiraal/fix-40283
Set isScratchedSpaceOverrideModificator to false when removing a RigidBodyBullet from a space.
-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();