Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix mismatch between RigidBody2D and Body2DSW can_sleep defaults. #32767
This issue was exposed during the change from 3.0 and 3.1 when saving and loading scenes was changed to only include nodes' non-default values. In 3.0 the default can_sleep value was set in Body2DSW when the scene was loaded, because it was specified in the RigidBody2D node's properties. In 3.1 the default can_sleep value is not set when the scene is loaded; so RigidBody2Ds do not sleep until the can_sleep property is set to true in a script.