From e1f74a2c89ad269dbe4fd6d50b80e74eaaa80041 Mon Sep 17 00:00:00 2001 From: Jerome Humbert <djeedai@gmail.com> Date: Wed, 9 Nov 2022 22:25:56 +0000 Subject: [PATCH] Fix `bevy_text` plugin registration (#72) Fix registration of the `component_animator_system::<Text>` in the `TweeningPlugin` to depend on the new `bevy_text` feature, and not on the `bevy_ui` one. --- src/plugin.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugin.rs b/src/plugin.rs index 0061b4d..ab56fe1 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -44,8 +44,7 @@ impl Plugin for TweeningPlugin { ); #[cfg(feature = "bevy_ui")] - app.add_system(component_animator_system::<Text>.label(AnimationSystem::AnimationUpdate)) - .add_system(component_animator_system::<Style>.label(AnimationSystem::AnimationUpdate)); + app.add_system(component_animator_system::<Style>.label(AnimationSystem::AnimationUpdate)); #[cfg(feature = "bevy_sprite")] app.add_system(component_animator_system::<Sprite>.label(AnimationSystem::AnimationUpdate)); @@ -54,6 +53,9 @@ impl Plugin for TweeningPlugin { app.add_system( asset_animator_system::<ColorMaterial>.label(AnimationSystem::AnimationUpdate), ); + + #[cfg(feature = "bevy_text")] + app.add_system(component_animator_system::<Text>.label(AnimationSystem::AnimationUpdate)); } } -- GitLab