fix bevy_hierarchy crate optional feature bevy_app (#12943)
fix bevy_hierarchy crate optional feature `bevy_app`
This commit is contained in:
parent
aa2ebbb43f
commit
70ce6f110b
@ -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>()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user