bevy/crates/bevy_ecs/src
databasedav 289c51b547 fix .insert_related index bound (#19134)
# Objective

resolves #19092

## Solution

- remove the `.saturating_sub` from the index transformation
- add `.saturating_add` to the internal offset calculation

## Testing

- added regression test, confirming 0 index order + testing max bound
2025-05-30 22:59:09 +02:00
..
entity Rename bevy_platform_support to bevy_platform (#18813) 2025-04-14 22:45:27 +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 .insert_related index bound (#19134) 2025-05-30 22:59:09 +02:00
schedule Use never_say_never hack to work around Rust 2024 regression for fn traits (#18804) 2025-04-14 22:46:29 +02:00
storage Fix sparse set components ignoring insert_if_new/InsertMode (#19059) 2025-05-30 22:59:09 +02:00
system Use never_say_never hack to work around Rust 2024 regression for fn traits (#18804) 2025-04-14 22:46:29 +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
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 fix .insert_related index bound (#19134) 2025-05-30 22:59:09 +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
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