Skip to content

Commit

Permalink
chore: minor comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Mar 23, 2024
1 parent 3fd18f4 commit 3020d44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pipeline/user_changes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ pub(crate) fn handle_user_changes_to_rigid_bodies(
islands.active_kinematic_set.push(*handle);
}

// Push the body to the active set if it is not
// sleeping and if it is not already inside of the active set, or if type changed to dynamic.
// Push the body to the active set if it is not inside the active set yet, and
// is either not longer sleeping or became dynamic.
if (changes.contains(RigidBodyChanges::SLEEP) || changes.contains(RigidBodyChanges::TYPE))
&& rb.is_enabled()
&& !rb.activation.sleeping // May happen if the body was put to sleep manually.
Expand Down

0 comments on commit 3020d44

Please sign in to comment.