mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
7edaf8ece8
The Animation class should proxy the :mode, :duration and :loop properties whenever possible, to avoid them going out of sync when changed using the Alpha and Timeline instances directly. Currently, if Timeline:duration is changed, querying Animation:duration will yield the old value, but the animation itself (being driven by the Timeline) will use the Timeline's :duration new value. This holds for the :loop and :mode properties as well. Instead, the getters for the Animation's :duration, :loop and :mode properties should ask the relevant object -- if any. The loop, duration and mode values inside AnimationPrivate should only be used if no Timeline or no Alpha instances are available, or when creating new instances.