From 47d4adfff90c96053753534c8d7cc135165021c7 Mon Sep 17 00:00:00 2001 From: jfaz Date: Wed, 9 Aug 2023 00:27:04 -0400 Subject: [PATCH 1/3] Expose `AnimationClip` paths --- crates/bevy_animation/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index feef6cc39b6cb..588cae0d5f7c8 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -102,6 +102,12 @@ impl AnimationClip { self.duration } + /// Returns the [`EntityPath`] map + #[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 From 310d53010f083117491028bbec26075a4d94fd83 Mon Sep 17 00:00:00 2001 From: jfaz <56184947+jfaz1@users.noreply.github.com> Date: Wed, 9 Aug 2023 10:20:30 -0400 Subject: [PATCH 2/3] Update crates/bevy_animation/src/lib.rs Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com> --- crates/bevy_animation/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index 588cae0d5f7c8..c9ce9963e8c6f 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -102,7 +102,7 @@ impl AnimationClip { self.duration } - /// Returns the [`EntityPath`] map + /// The [`EntityPath`] map. #[inline] pub fn paths(&self) -> &HashMap { &self.paths From a4cc360576f70c8d18f05661c60e68c3ec608d8d Mon Sep 17 00:00:00 2001 From: jfaz <56184947+jfaz1@users.noreply.github.com> Date: Thu, 10 Aug 2023 02:23:14 -0400 Subject: [PATCH 3/3] Update crates/bevy_animation/src/lib.rs Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com> --- crates/bevy_animation/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index c9ce9963e8c6f..20cbf96d8b669 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -102,7 +102,7 @@ impl AnimationClip { self.duration } - /// The [`EntityPath`] map. + /// The bone ids mapped by their [`EntityPath`]. #[inline] pub fn paths(&self) -> &HashMap { &self.paths