From c6af248e66c86c900d7703bcefeb1e6d185ffedf Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Tue, 3 Nov 2020 14:45:50 +0100 Subject: Rename reset_internal_links -> reset_internal_references. --- src/dynamics/rigid_body.rs | 2 +- src/dynamics/rigid_body_set.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dynamics') diff --git a/src/dynamics/rigid_body.rs b/src/dynamics/rigid_body.rs index b04ca41..f85ab89 100644 --- a/src/dynamics/rigid_body.rs +++ b/src/dynamics/rigid_body.rs @@ -82,7 +82,7 @@ impl RigidBody { } } - pub(crate) fn reset_internal_links(&mut self) { + pub(crate) fn reset_internal_references(&mut self) { self.colliders = Vec::new(); self.joint_graph_index = RigidBodyGraphIndex::new(crate::INVALID_U32); self.active_island_id = crate::INVALID_USIZE; diff --git a/src/dynamics/rigid_body_set.rs b/src/dynamics/rigid_body_set.rs index f7064ed..b857173 100644 --- a/src/dynamics/rigid_body_set.rs +++ b/src/dynamics/rigid_body_set.rs @@ -158,7 +158,7 @@ impl RigidBodySet { pub fn insert(&mut self, mut rb: RigidBody) -> RigidBodyHandle { // Make sure the internal links are reset, they may not be // if this rigid-body was obtained by cloning another one. - rb.reset_internal_links(); + rb.reset_internal_references(); let handle = self.bodies.insert(rb); let rb = &mut self.bodies[handle]; -- cgit