aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-12-11 17:52:51 +0100
committerSébastien Crozet <developer@crozet.re>2022-12-11 17:52:51 +0100
commita1e255dbcdbfde270df32eeda59360493649c73f (patch)
tree8fed8828dcc9337a5fdc65580344f8bf12983ab4
parent0207f8cf96a3b091ca851276f98f3b482e2a39f2 (diff)
downloadrapier-a1e255dbcdbfde270df32eeda59360493649c73f.tar.gz
rapier-a1e255dbcdbfde270df32eeda59360493649c73f.tar.bz2
rapier-a1e255dbcdbfde270df32eeda59360493649c73f.zip
Fix warnings
-rw-r--r--src/pipeline/user_changes.rs6
-rw-r--r--src_testbed/harness/mod.rs2
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,
);