Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/collision/contact_types/contact_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ impl ContactGraph {
where
F: FnMut(ContactPair),
{
let Some(&index) = self.entity_graph_index.get(entity) else {
// Remove the entity from the entity graph index,
// and get the index of the node in the graph.
let Some(index) = self.entity_graph_index.remove(entity, NodeIndex::END) else {
return;
};

Expand Down