From 583e03479694160c782bf813a8316989f89f7e31 Mon Sep 17 00:00:00 2001 From: Blazepaws <157802762+blazepaws@users.noreply.github.com> Date: Sat, 14 Sep 2024 03:43:16 +0200 Subject: [PATCH] Reflected traits for resources and components: bevy_a11y (#15192) Solves https://github.com/bevyengine/bevy/issues/15187 for the bevy_a11y subcrate. --- crates/bevy_a11y/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/bevy_a11y/src/lib.rs b/crates/bevy_a11y/src/lib.rs index 92f514ab4513d..66b5d333bedde 100644 --- a/crates/bevy_a11y/src/lib.rs +++ b/crates/bevy_a11y/src/lib.rs @@ -21,6 +21,7 @@ use bevy_ecs::{ schedule::SystemSet, system::Resource, }; +use bevy_reflect::std_traits::ReflectDefault; use bevy_reflect::Reflect; /// Wrapper struct for [`accesskit::ActionRequest`]. Required to allow it to be used as an `Event`. @@ -94,7 +95,7 @@ impl From for AccessibilityNode { /// Resource representing which entity has keyboard focus, if any. #[derive(Resource, Default, Deref, DerefMut, Reflect)] -#[reflect(Resource)] +#[reflect(Resource, Default)] pub struct Focus(pub Option); /// Set enum for the systems relating to accessibility