diff --git a/crates/bevy_gltf_component_refs/Cargo.toml b/crates/bevy_gltf_component_refs/Cargo.toml index 9eb77188..5a1ce158 100644 --- a/crates/bevy_gltf_component_refs/Cargo.toml +++ b/crates/bevy_gltf_component_refs/Cargo.toml @@ -14,10 +14,7 @@ license = "MIT OR Apache-2.0" workspace = true [dependencies] -bevy = { version = "0.13", default-features = false, features = [ - "bevy_asset", - "bevy_scene", -] } +bevy = { version = "0.13", default-features = false, features = ["bevy_scene"] } bevy_gltf_components = { version = "0.5", path = "../bevy_gltf_components" } [dev-dependencies] diff --git a/crates/bevy_gltf_component_refs/src/lib.rs b/crates/bevy_gltf_component_refs/src/lib.rs index 628111fd..945204c3 100644 --- a/crates/bevy_gltf_component_refs/src/lib.rs +++ b/crates/bevy_gltf_component_refs/src/lib.rs @@ -1,6 +1,5 @@ use bevy::{ app::{App, Plugin}, - asset::Handle, ecs::{ component::Component, entity::Entity, @@ -13,7 +12,7 @@ use bevy::{ log::warn, prelude::Update, reflect::{Reflect, TypePath}, - scene::Scene, + scene::SceneInstance, utils::HashMap, }; use bevy_gltf_components::GltfComponentsSet; @@ -157,7 +156,7 @@ impl Default for GltfRefPlugin { /// SystemParam to find the Gltf that an entity belongs to. #[derive(SystemParam)] pub struct GltfForEntity<'w, 's> { - gltfs: Query<'w, 's, (), With>>, + gltfs: Query<'w, 's, (), With>, hierarchy: Query<'w, 's, &'static Parent>, }