diff --git a/src/plugin.rs b/src/plugin.rs index 0061b4d04346f71f8ef951a9d3a2c563a8d88218..ab56fe17539de3a5b18d55294cc270025090fb1d 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)); } }