Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/editseq.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/src/editseq.c b/source/blender/src/editseq.c
index bc453dd5a2e..c3264812c4b 100644
--- a/source/blender/src/editseq.c
+++ b/source/blender/src/editseq.c
@@ -2893,7 +2893,8 @@ void transform_seq(int mode, int context)
TimeMarker *marker;
/* looping on sequences, WHILE_SEQ macro allocates memory each time */
- int totseq_index, seq_index; Sequence **seqar;
+ int totseq_index, seq_index;
+ Sequence **seqar = 0;
if(mode!='g' && mode!='e') return; /* from gesture */
@@ -2904,8 +2905,10 @@ void transform_seq(int mode, int context)
/* Build the sequence array once, be sure to free it */
build_seqar( ed->seqbasep, &seqar, &totseq_index );
- for(seq_index=0, seq=seqar[0]; seq_index < totseq_index; seq=seqar[++seq_index]) {
- if(seq->flag & SELECT) totstrip++;
+ if (seqar) {
+ for(seq_index=0, seq=seqar[0]; seq_index < totseq_index; seq=seqar[++seq_index]) {
+ if(seq->flag & SELECT) totstrip++;
+ }
}
if (sseq->flag & SEQ_MARKER_TRANS) {