We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed4c675 commit 5762a8aCopy full SHA for 5762a8a
src/entt/entity/view.hpp
@@ -425,8 +425,7 @@ class basic_view<get_t<Get...>, exclude_t<Exclude...>> {
425
* @return True if the view contains the given entity, false otherwise.
426
*/
427
[[nodiscard]] bool contains(const entity_type entt) const noexcept {
428
- return std::apply([entt](const auto *...curr) { return (curr->contains(entt) && ...); }, pools)
429
- && std::apply([entt](const auto *...curr) { return (!curr->contains(entt) && ...); }, filter);
+ return std::apply([entt](const auto *...curr) { return (curr->contains(entt) && ...); }, pools) && !reject(entt);
430
}
431
432
/**
0 commit comments