From a1e255dbcdbfde270df32eeda59360493649c73f Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sun, 11 Dec 2022 17:52:51 +0100 Subject: Fix warnings --- src/pipeline/user_changes.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/pipeline/user_changes.rs b/src/pipeline/user_changes.rs index 0f4058c..eeda97a 100644 --- a/src/pipeline/user_changes.rs +++ b/src/pipeline/user_changes.rs @@ -65,9 +65,9 @@ pub(crate) fn handle_user_changes_to_rigid_bodies( } let rb = bodies.index_mut_internal(*handle); - let mut changes = rb.changes; let mut ids = rb.ids; - let mut activation = rb.activation; + let changes = rb.changes; + let activation = rb.activation; { if rb.is_enabled() { @@ -126,7 +126,7 @@ pub(crate) fn handle_user_changes_to_rigid_bodies( // sleeping and if it is not already inside of the active set. if changes.contains(RigidBodyChanges::SLEEP) && rb.is_enabled() - && !activation.sleeping // May happen if the body was put to sleep manually. + && !rb.activation.sleeping // May happen if the body was put to sleep manually. && rb.is_dynamic() // Only dynamic bodies are in the active dynamic set. && islands.active_dynamic_set.get(ids.active_set_id) != Some(handle) { -- cgit