Skip to content

Commit

Permalink
Set isScratchedSpaceOverrideModificator to false when removing a
Browse files Browse the repository at this point in the history
RigidBodyBullet from a space.
  • Loading branch information
madmiraal committed Jul 12, 2020
1 parent 9678a41 commit 2ea644f
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 2ea644f

Please sign in to comment.