diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index 866eb59cda6e8..b7b8cb1a494b9 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -102,6 +102,12 @@ impl AnimationClip { self.duration } + /// The bone ids mapped by their [`EntityPath`]. + #[inline] + pub fn paths(&self) -> &HashMap { + &self.paths + } + /// Add a [`VariableCurve`] to an [`EntityPath`]. pub fn add_curve_to_path(&mut self, path: EntityPath, curve: VariableCurve) { // Update the duration of the animation by this curve duration if it's longer