Skip to content

Commit a79e52b

Browse files
authored
fix reflect import in bevy_app propagate (#20382)
# Objective Fix building bevy_app without default features ## Solution Since #20197 some imports to reflect are not properly gates ## Testing ``` cargo build --package bevy_app --no-default-features ```
1 parent 52bcffb commit a79e52b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/bevy_app/src/propagate.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@ use alloc::vec::Vec;
22
use core::marker::PhantomData;
33

44
use crate::{App, Plugin, Update};
5+
#[cfg(feature = "bevy_reflect")]
6+
use bevy_ecs::reflect::ReflectComponent;
57
use bevy_ecs::{
68
component::Component,
79
entity::Entity,
810
hierarchy::ChildOf,
911
lifecycle::RemovedComponents,
1012
query::{Changed, Or, QueryFilter, With, Without},
11-
reflect::ReflectComponent,
1213
relationship::{Relationship, RelationshipTarget},
1314
schedule::{IntoScheduleConfigs, SystemSet},
1415
system::{Commands, Local, Query},
1516
};
17+
#[cfg(feature = "bevy_reflect")]
1618
use bevy_reflect::Reflect;
1719

1820
/// Plugin to automatically propagate a component value to all direct and transient relationship

0 commit comments

Comments
 (0)