fix bevy_hierarchy crate optional feature bevy_app (#12943)

fix bevy_hierarchy crate optional feature `bevy_app`
This commit is contained in:
Ycy 2024-04-13 12:46:00 +08:00 committed by GitHub
parent aa2ebbb43f
commit 70ce6f110b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,9 +88,11 @@ use bevy_app::prelude::*;
/// Check the [crate-level documentation] for all the features.
///
/// [crate-level documentation]: crate
#[cfg(feature = "bevy_app")]
#[derive(Default)]
pub struct HierarchyPlugin;
#[cfg(feature = "bevy_app")]
impl Plugin for HierarchyPlugin {
fn build(&self, app: &mut App) {
app.register_type::<Children>()