mirror of https://github.com/godotengine/godot
Set isScratchedSpaceOverrideModificator to false when removing a
RigidBodyBullet from a space.
This commit is contained in:
parent
9678a41b19
commit
2ea644fda4
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue