From 4bea611a434128873598b547b37e3f253865ba38 Mon Sep 17 00:00:00 2001 From: MichiRecRoom <1008889+LikeLakers2@users.noreply.github.com> Date: Sat, 31 Aug 2024 14:38:34 -0400 Subject: [PATCH] Don't require going through `bevy_animation::prelude` to get to certain items in `bevy_animation` (#14979) # Objective * Fixes https://github.com/bevyengine/bevy/issues/14889 ## Solution Exposes `bevy_animation::{animatable, graph, transition}` to the world. ## Testing - Did you test these changes? If so, how? - These changes do not need testing, as they do not modify/add/remove any functionality. - ~~Are there any parts that need more testing?~~ - ~~How can other people (reviewers) test your changes? Is there anything specific they need to know?~~ - ~~If relevant, what platforms did you test these changes on, and are there any important ones you can't test?~~ --------- Co-authored-by: Alice Cecile --- crates/bevy_animation/src/animatable.rs | 2 ++ crates/bevy_animation/src/lib.rs | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/bevy_animation/src/animatable.rs b/crates/bevy_animation/src/animatable.rs index 4e59ccc8b2875..c51b995b3c20a 100644 --- a/crates/bevy_animation/src/animatable.rs +++ b/crates/bevy_animation/src/animatable.rs @@ -1,3 +1,5 @@ +//! Traits and type for interpolating between values. + use crate::util; use bevy_color::{Laba, LinearRgba, Oklaba, Srgba, Xyza}; use bevy_ecs::world::World; diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index 4277f0b1141b0..f1382906c7dfd 100755 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -7,9 +7,9 @@ //! Animation for the game engine Bevy -mod animatable; -mod graph; -mod transition; +pub mod animatable; +pub mod graph; +pub mod transition; mod util; use std::cell::RefCell;