Rename reset_internal_links -> reset_internal_references.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user