Skip to content

Commit

Permalink
Revert "Ignore filter during removal in DynamicTree OverlapCheck"
Browse files Browse the repository at this point in the history
This reverts commit ae1775e.
  • Loading branch information
notgiven688 committed Oct 29, 2024
1 parent ec98eee commit 86673a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jitter2/Collision/DynamicTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ private void OverlapCheck(int index, int node, bool add)
{
if (node == index) return;

if (add && !Filter(Nodes[node].Proxy, Nodes[index].Proxy)) return;
if (!Filter(Nodes[node].Proxy, Nodes[index].Proxy)) return;

lock (PotentialPairs)
{
Expand Down

0 comments on commit 86673a5

Please sign in to comment.