From 1d7c44af2542ec28cf7b5bec56d84a2e27077f48 Mon Sep 17 00:00:00 2001 From: Aevyrie Roessler Date: Fri, 28 Feb 2025 22:23:21 -0800 Subject: [PATCH] Only require panic on cycle test for potentially unsound system. --- crates/bevy_transform/src/systems.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/bevy_transform/src/systems.rs b/crates/bevy_transform/src/systems.rs index 0c98485706..7b1a27fcec 100644 --- a/crates/bevy_transform/src/systems.rs +++ b/crates/bevy_transform/src/systems.rs @@ -873,12 +873,10 @@ mod test { app.add_systems( Update, - ( - mark_dirty_trees, - propagate_parent_transforms, - sync_simple_transforms, - ) - .chain(), + // It is unsound for this unsafe system to encounter a cycle without panicking. This + // requirement only applies to systems with unsafe parallel traversal that result in + // aliased mutability during a cycle. + propagate_parent_transforms, ); fn setup_world(world: &mut World) -> (Entity, Entity) {