From f33074116b40f358d040737838c2ea09c59f12c5 Mon Sep 17 00:00:00 2001 From: Periwink Date: Mon, 26 May 2025 11:43:06 -0400 Subject: [PATCH] Make SystemChangeTick Clone (#18991) # Objective It can be useful to store the `SystemChangeTick` for a given System. I wanted to copy them but I noticed that it doesn't implement Clone. --- crates/bevy_ecs/src/system/system_param.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/system/system_param.rs b/crates/bevy_ecs/src/system/system_param.rs index 52148f8018..f2774116f0 100644 --- a/crates/bevy_ecs/src/system/system_param.rs +++ b/crates/bevy_ecs/src/system/system_param.rs @@ -1675,7 +1675,7 @@ unsafe impl<'a> SystemParam for &'a Bundles { /// Component change ticks that are more recent than `last_run` will be detected by the system. /// Those can be read by calling [`last_changed`](crate::change_detection::DetectChanges::last_changed) /// on a [`Mut`](crate::change_detection::Mut) or [`ResMut`](ResMut). -#[derive(Debug)] +#[derive(Debug, Clone, Copy)] pub struct SystemChangeTick { last_run: Tick, this_run: Tick,