From c281776cf213eea96f09e900870fbe0e258e9aaf Mon Sep 17 00:00:00 2001 From: Piotr Siuszko Date: Fri, 22 Aug 2025 18:41:21 +0200 Subject: [PATCH 01/15] Naive implementation --- crates/bevy_animation/src/lib.rs | 34 +++++++++++++++++---- crates/bevy_animation/src/transition.rs | 10 +++--- crates/bevy_internal/src/default_plugins.rs | 5 ++- examples/animation/animated_transform.rs | 9 ++++++ 4 files changed, 47 insertions(+), 11 deletions(-) diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index 386eb614be3a3..aedc2bbd3c0d0 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -980,13 +980,20 @@ fn trigger_untargeted_animation_events( } } +/// Marker component for animations that should not use the default animation time. +#[derive(Debug, Component, Reflect, Clone, Copy)] +#[reflect(Component)] +pub struct DontUseDefaultAnimationTime; + /// A system that advances the time for all playing animations. -pub fn advance_animations( - time: Res