Skip to content

Commit

Permalink
Update src/geometry/interaction_groups.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Sébastien Crozet <[email protected]>
  • Loading branch information
Ughuuu and sebcrozet authored Nov 28, 2024
1 parent 0db7c72 commit db3c009
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/geometry/interaction_groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ impl InteractionGroups {
/// See [`InteractionTestMode`] for more info.
#[inline]
pub const fn test(self, rhs: Self) -> bool {
match self.test_mode {
InteractionTestMode::AND => self.test_and(rhs),
InteractionTestMode::OR => self.test_or(rhs),
if self.test_mode == InteractionTestMode::And || rhs.test_mode == InteractionTestMode::And {
self.test_and(rhs)
} else {
self.test_or(rhs)
}
}
}

impl Default for InteractionGroups {
Expand Down

0 comments on commit db3c009

Please sign in to comment.