Browse Source

Set isScratchedSpaceOverrideModificator to false when removing a
RigidBodyBullet from a space.

Marcel Admiraal 5 years ago
parent
commit
2ea644fda4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/bullet/rigid_body_bullet.cpp

+ 1 - 0
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
 	// Clear the old space if there is one
 	if (space) {
 	if (space) {
 		can_integrate_forces = false;
 		can_integrate_forces = false;
+		isScratchedSpaceOverrideModificator = false;
 
 
 		// Remove all eventual constraints
 		// Remove all eventual constraints
 		assert_no_constraints();
 		assert_no_constraints();