2
0
Эх сурвалжийг харах

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

Marcel Admiraal 5 жил өмнө
parent
commit
a3246a5ebe

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