diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index feef6cc39b6cb..20cbf96d8b669 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