Skip to content

Commit 2349dd5

Browse files
committed
Fix issue where set_enabled had no effect
1 parent 57c4e91 commit 2349dd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/geometry/narrow_phase.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,10 @@ impl NarrowPhase {
831831
// No update needed for these colliders.
832832
return;
833833
}
834+
if !co1.is_enabled() || !co2.is_enabled() {
835+
pair.clear();
836+
break 'emit_events;
837+
}
834838
if co1.parent.map(|p| p.handle) == co2.parent.map(|p| p.handle) && co1.parent.is_some()
835839
{
836840
// Same parents. Ignore collisions.

0 commit comments

Comments
 (0)