Add derive Default to Disabled (#18275)

# Objective

- `#[require(Disabled)]` doesn't work as you'd expect

## Solution

- `#[derive(Default)]`
This commit is contained in:
NiseVoid 2025-03-12 18:57:20 +01:00 committed by GitHub
parent 26ea38e4a6
commit 5d80ac3ded
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,7 +92,7 @@ use {crate::reflect::ReflectComponent, bevy_reflect::Reflect};
/// See [the module docs] for more info. /// See [the module docs] for more info.
/// ///
/// [the module docs]: crate::entity_disabling /// [the module docs]: crate::entity_disabling
#[derive(Component, Clone, Debug)] #[derive(Component, Clone, Debug, Default)]
#[cfg_attr( #[cfg_attr(
feature = "bevy_reflect", feature = "bevy_reflect",
derive(Reflect), derive(Reflect),