Explorar o código

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

[3.2] Set isScratchedSpaceOverrideModificator to false when removing a RigidBodyBullet from a space.
Rémi Verschelde %!s(int64=5) %!d(string=hai) anos
pai
achega
717d4cbb73
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      modules/bullet/rigid_body_bullet.cpp

+ 1 - 0
modules/bullet/rigid_body_bullet.cpp

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