diff options
| -rw-r--r-- | src/pipeline/user_changes.rs | 6 | ||||
| -rw-r--r-- | src_testbed/harness/mod.rs | 2 |
2 files changed, 4 insertions, 4 deletions
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) { diff --git a/src_testbed/harness/mod.rs b/src_testbed/harness/mod.rs index 91d4da9..9608592 100644 --- a/src_testbed/harness/mod.rs +++ b/src_testbed/harness/mod.rs @@ -215,7 +215,7 @@ impl Harness { &mut physics.impulse_joints, &mut physics.multibody_joints, &mut physics.ccd_solver, - &mut physics.query_pipeline, + Some(&mut physics.query_pipeline), &*physics.hooks, event_handler, ); |
