fix [#28018] Sequence Swap Data Operator does not work
authorCampbell Barton <ideasman42@gmail.com>
Tue, 19 Jul 2011 01:36:59 +0000 (01:36 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 19 Jul 2011 01:36:59 +0000 (01:36 +0000)
source/blender/blenkernel/intern/sequencer.c

index 265cc3eeb79988315d84240467e5873ab106942c..d6a152a52809cb308ea9a59cf6836bbefd23cc73 100644 (file)
@@ -3232,9 +3232,10 @@ int seq_swap(Sequence *seq_a, Sequence *seq_b, const char **error_str)
 {
        char name[sizeof(seq_a->name)];
 
-       if(seq_a->len != seq_b->len)
+       if(seq_a->len != seq_b->len) {
                *error_str= "Strips must be the same length";
                return 0;
+       }
 
        /* type checking, could be more advanced but disalow sound vs non-sound copy */
        if(seq_a->type != seq_b->type) {