Skip to content

Commit 70ce6f1

Browse files
authored
fix bevy_hierarchy crate optional feature bevy_app (#12943)
fix bevy_hierarchy crate optional feature `bevy_app`
1 parent aa2ebbb commit 70ce6f1

File tree

1 file changed

+2
-0
lines changed
  • crates/bevy_hierarchy/src

1 file changed

+2
-0
lines changed

crates/bevy_hierarchy/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ use bevy_app::prelude::*;
8888
/// Check the [crate-level documentation] for all the features.
8989
///
9090
/// [crate-level documentation]: crate
91+
#[cfg(feature = "bevy_app")]
9192
#[derive(Default)]
9293
pub struct HierarchyPlugin;
9394

95+
#[cfg(feature = "bevy_app")]
9496
impl Plugin for HierarchyPlugin {
9597
fn build(&self, app: &mut App) {
9698
app.register_type::<Children>()

0 commit comments

Comments
 (0)