bevy/crates/bevy_ecs/src
eugineerd bc00178b59 Fix EntityCloner replacing required components. (#19326)
# Objective
Fix #19324

## Solution
`EntityCloner` replaces required components when filtering. This is
unexpected when comparing with the way the rest of bevy handles required
components. This PR separates required components from explicit
components when filtering in `EntityClonerBuilder`.

## Testing
Added a regression test for this case.
2025-05-30 23:53:51 +02:00
..
entity Fix EntityCloner replacing required components. (#19326) 2025-05-30 23:53:51 +02:00
error Use never_say_never hack to work around Rust 2024 regression for fn traits (#18804) 2025-04-14 22:46:29 +02:00
event Improve error message for missing events (#18683) 2025-04-03 21:45:43 +02:00
identifier bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
observer Rename bevy_platform_support to bevy_platform (#18813) 2025-04-14 22:45:27 +02:00
query Rename bevy_platform_support to bevy_platform (#18813) 2025-04-14 22:45:27 +02:00
reflect Replace VisitEntities with MapEntities (#18432) 2025-03-24 00:09:29 +01:00
relationship Fix custom relations panics with parent/child relations (#19341) 2025-05-30 23:53:51 +02:00
schedule No schedule build pass overwrite if build settings do not change auto_insert_apply_deferred from true (#19217) 2025-05-30 22:59:10 +02:00
storage Fix sparse set components ignoring insert_if_new/InsertMode (#19059) 2025-05-30 22:59:09 +02:00
system Fix spawn tracking for spawn commands (#19351) 2025-05-30 23:53:51 +02:00
world Rename bevy_platform_support to bevy_platform (#18813) 2025-04-14 22:45:27 +02:00
archetype.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-14 22:45:27 +02:00
batching.rs Fix *most* clippy lints (#15906) 2024-10-14 20:52:35 +00:00
bundle.rs Fix sparse set components ignoring insert_if_new/InsertMode (#19059) 2025-05-30 22:59:09 +02:00
change_detection.rs Expose the added tick for change detection, both getting and setting. (#18746) 2025-04-09 00:21:42 +02:00
component.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-14 22:45:27 +02:00
entity_disabling.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
hierarchy.rs feat: derive Serialize on Childof (#19336) 2025-05-30 22:59:10 +02:00
intern.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-14 22:45:27 +02:00
label.rs do_not_recommend interned Labels (#17950) 2025-02-25 23:46:21 +00:00
lib.rs Use never_say_never hack to work around Rust 2024 regression for fn traits (#18804) 2025-04-14 22:46:29 +02:00
name.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-14 22:45:27 +02:00
never.rs Use never_say_never hack to work around Rust 2024 regression for fn traits (#18804) 2025-04-14 22:46:29 +02:00
removal_detection.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
resource.rs Move Resource trait to its own file (#17469) 2025-01-21 19:47:08 +00:00
spawn.rs Change with_related to work with a Bundle and added with_relationships method (#18699) 2025-04-10 01:19:33 +02:00
traversal.rs Relationships (non-fragmenting, one-to-many) (#17398) 2025-01-18 22:20:30 +00:00