diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index ee70d801ef952..9b818a8df0791 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -6,14 +6,16 @@ use std::ops::Deref; use bevy_app::{App, CoreStage, Plugin}; use bevy_asset::{AddAsset, Assets, Handle}; -use bevy_core::Name; +use bevy_core::{Name, NameLookup}; +pub use bevy_core::EntityPath; use bevy_ecs::{ change_detection::DetectChanges, entity::Entity, prelude::Component, + query::QueryEntityError, reflect::ReflectComponent, schedule::ParallelSystemDescriptorCoercion, - system::{Query, Res}, + system::{Query, Res, SystemParam}, }; use bevy_hierarchy::Children; use bevy_math::{Quat, Vec3}; @@ -25,9 +27,7 @@ use bevy_utils::{tracing::warn, HashMap}; #[allow(missing_docs)] pub mod prelude { #[doc(hidden)] - pub use crate::{ - AnimationClip, AnimationPlayer, AnimationPlugin, EntityPath, Keyframes, VariableCurve, - }; + pub use crate::{AnimationClip, AnimationPlayer, AnimationPlugin, Keyframes, VariableCurve, EntityPath}; } /// List of keyframes for one of the attribute of a [`Transform`]. @@ -52,13 +52,6 @@ pub struct VariableCurve { pub keyframes: Keyframes, } -/// Path to an entity, with [`Name`]s. Each entity in a path must have a name. -#[derive(Clone, Debug, Hash, PartialEq, Eq, Default)] -pub struct EntityPath { - /// Parts of the path - pub parts: Vec, -} - /// A list of [`VariableCurve`], and the [`EntityPath`] to which they apply. #[derive(Clone, TypeUuid, Debug, Default)] #[uuid = "d81b7179-0448-4eb0-89fe-c067222725bf"] @@ -179,9 +172,8 @@ pub fn animation_player( time: Res