Applied:
authorPeter Schlaile <peter@schlaile.de>
Sun, 18 Apr 2010 13:25:51 +0000 (13:25 +0000)
committerPeter Schlaile <peter@schlaile.de>
Sun, 18 Apr 2010 13:25:51 +0000 (13:25 +0000)
[#21390] Sequencer: Shifted frames on Time Flip/Flip Backwards

thanks to Koen Ribus(kori) for the patch.

source/blender/blenkernel/intern/sequencer.c

index 3cfbbd8..15549c8 100644 (file)
@@ -1024,7 +1024,7 @@ static int give_stripelem_index(Sequence *seq, int cfra)
                /*reverse frame in this sequence */
                if(cfra <= seq->start) nr= seq->len-1;
                else if(cfra >= seq->start+seq->len-1) nr= 0;
-               else nr= (seq->start + seq->len) - cfra;
+               else nr= (seq->start + seq->len - 1) - cfra;
        } else {
                if(cfra <= seq->start) nr= 0;
                else if(cfra >= seq->start+seq->len-1) nr= seq->len-1;