[gimp/wip/animation: 71/197] plug-ins: do not reverse track order at each serialization.



commit d415344a5a8c937238e5ff84eeb4dddbd25ed861
Author: Jehan <jehan girinstud io>
Date:   Wed Aug 10 02:35:27 2016 +0200

    plug-ins: do not reverse track order at each serialization.

 .../animation-play/core/animation-celanimation.c   |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/animation-play/core/animation-celanimation.c 
b/plug-ins/animation-play/core/animation-celanimation.c
index dce0783..0d64df0 100644
--- a/plug-ins/animation-play/core/animation-celanimation.c
+++ b/plug-ins/animation-play/core/animation-celanimation.c
@@ -410,10 +410,15 @@ animation_cel_animation_load_xml (Animation   *animation,
     }
   else
     {
-      /* cache. */
-      gint i;
-      gint duration = animation_get_length (animation);
+      AnimationCelAnimation *cel_animation;
+      gint                   duration = animation_get_length (animation);
+      gint                   i;
 
+      cel_animation = ANIMATION_CEL_ANIMATION (animation);
+      /* Reverse track order. */
+      cel_animation->priv->tracks = g_list_reverse (cel_animation->priv->tracks);
+
+      /* cache. */
       for (i = 0; i < duration; i++)
         {
           g_signal_emit_by_name (animation, "loading",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]