diff --git a/Cargo.toml b/Cargo.toml index 51667540151a65a341dd8855943d3430b1ae70ef..04f4a1a4d9204b37902533b9312cd2f3b0a3df91 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "micro_banimate" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" edition = "2021" license = "Apache-2.0" description = "Easily manage complex Bevy 2D sprite animations" diff --git a/src/systems.rs b/src/systems.rs index 98e75bc3e32c38fcc1f4186161c5bba6718e3c48..4d74de911539c8e5234c7a7661686978acb6a0df 100644 --- a/src/systems.rs +++ b/src/systems.rs @@ -4,6 +4,7 @@ use crate::definitions::*; use crate::query::AnimationQuery; #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, SystemSet)] +#[system_set(base)] pub enum AnimationSystems { TickAnimations, SyncAnimations, @@ -83,18 +84,18 @@ pub struct AnimationSystemsPlugin; impl Plugin for AnimationSystemsPlugin { fn build(&self, app: &mut App) { - app.configure_set( - AnimationSystems::SyncAnimations - .after(AnimationSystems::TickAnimations) - .in_base_set(CoreSet::PostUpdate), - ); + app.configure_sets(( + CoreSet::PostUpdate, + AnimationSystems::TickAnimations, + AnimationSystems::SyncAnimations, + )); app.add_event::<AnimationCompleted>() .add_systems( (tick_animations, tick_simple_sprite_animations) - .in_set(AnimationSystems::TickAnimations), + .in_base_set(AnimationSystems::TickAnimations), ) - .add_system(sync_parent_animations.in_set(AnimationSystems::SyncAnimations)); + .add_system(sync_parent_animations.in_base_set(AnimationSystems::SyncAnimations)); // #[cfg(feature = "ecs_tilemap")] // {