Add derive Default to Disabled (#18275)
# Objective - `#[require(Disabled)]` doesn't work as you'd expect ## Solution - `#[derive(Default)]`
This commit is contained in:
parent
26ea38e4a6
commit
5d80ac3ded
@ -92,7 +92,7 @@ use {crate::reflect::ReflectComponent, bevy_reflect::Reflect};
|
||||
/// See [the module docs] for more info.
|
||||
///
|
||||
/// [the module docs]: crate::entity_disabling
|
||||
#[derive(Component, Clone, Debug)]
|
||||
#[derive(Component, Clone, Debug, Default)]
|
||||
#[cfg_attr(
|
||||
feature = "bevy_reflect",
|
||||
derive(Reflect),
|
||||
|
Loading…
Reference in New Issue
Block a user