[gimp/wip/animation: 114/145] plug-ins: fix animation loops.



commit b5c2a5a1b79f7ee8799415f6e02e5cf033394109
Author: Jehan <jehan girinstud io>
Date:   Mon May 29 10:59:13 2017 +0200

    plug-ins: fix animation loops.
    
    Position of successive suite of frames were wrong. Not sure when I
    introduced this bug.

 plug-ins/animation-play/widgets/animation-xsheet.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/animation-play/widgets/animation-xsheet.c 
b/plug-ins/animation-play/widgets/animation-xsheet.c
index 674d950..a60abb4 100755
--- a/plug-ins/animation-play/widgets/animation-xsheet.c
+++ b/plug-ins/animation-play/widgets/animation-xsheet.c
@@ -1458,10 +1458,10 @@ animation_xsheet_suite_do (GtkWidget       *button,
   data.suite_length = g_tree_nnodes (suite) * xsheet->priv->suite_fpi;
 
   data.end_of_animation = FALSE;
-  data.index = 0;
 
   for (data.loop_idx = 0; xsheet->priv->suite_cycle == 0 || data.loop_idx < xsheet->priv->suite_cycle; 
data.loop_idx++)
     {
+      data.index = 0;
       g_tree_foreach (suite, (GTraverseFunc) create_suite, &data);
       if (data.end_of_animation)
         break;


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