mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue