mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 06:30:19 +00:00
Fix any_component_removed (#8939)
# Objective `any_component_removed` condition is inversed. ## Solution Remove extra `!`. --- ## Changelog ### Fixed Fix `any_component_removed` condition.
This commit is contained in:
parent
cdaae01c74
commit
8a1f0a2997
1 changed files with 1 additions and 1 deletions
|
@ -948,7 +948,7 @@ pub mod common_conditions {
|
||||||
// Simply checking `is_empty` would not be enough.
|
// Simply checking `is_empty` would not be enough.
|
||||||
// PERF: note that `count` is efficient (not actually looping/iterating),
|
// PERF: note that `count` is efficient (not actually looping/iterating),
|
||||||
// due to Bevy having a specialized implementation for events.
|
// due to Bevy having a specialized implementation for events.
|
||||||
move |mut removals: RemovedComponents<T>| !removals.iter().count() != 0
|
move |mut removals: RemovedComponents<T>| removals.iter().count() != 0
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Generates a [`Condition`](super::Condition) that inverses the result of passed one.
|
/// Generates a [`Condition`](super::Condition) that inverses the result of passed one.
|
||||||
|
|
Loading…
Reference in a new issue