Merge pull request #40309 from madmiraal/fix-40283-3.2

[3.2] Set isScratchedSpaceOverrideModificator to false when removing a RigidBodyBullet from a space.
This commit is contained in:
Rémi Verschelde 2020-07-13 18:00:12 +02:00 committed by GitHub
commit 717d4cbb73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();