Skip to content

Commit

Permalink
Merge pull request #40308 from madmiraal/fix-40283
Browse files Browse the repository at this point in the history
Set isScratchedSpaceOverrideModificator to false when removing a RigidBodyBullet from a space.
  • Loading branch information
akien-mga authored Jul 13, 2020
2 parents 07db4d5 + 2ea644f commit 6f0edf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/bullet/rigid_body_bullet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6f0edf5

Please sign in to comment.