diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-03-31 13:15:05 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-03-31 13:34:44 +0300 |
commit | 4d856ecb11866805fa4e9ffb7f7cc7a4930b0d52 (patch) | |
tree | 3036894b83fa33227e6afb23d74187598fe885c4 /source | |
parent | e9616c82bd10a5444478d4b86fa4a8dea2041f09 (diff) |
Cleanup: Fix warnings
Introduced in b128ffd53970
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_modifier.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_select.c | 11 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_modifier.c b/source/blender/editors/space_sequencer/sequencer_modifier.c index 5c120ac2e11..9b3ecacceb9 100644 --- a/source/blender/editors/space_sequencer/sequencer_modifier.c +++ b/source/blender/editors/space_sequencer/sequencer_modifier.c @@ -230,7 +230,6 @@ static int strip_modifier_copy_exec(bContext *C, wmOperator *op) Scene *scene = CTX_data_scene(C); Editing *ed = scene->ed; Sequence *seq = SEQ_select_active_get(scene); - Sequence *seq_iter; const int type = RNA_enum_get(op->ptr, "type"); if (!seq || !seq->modifiers.first) { diff --git a/source/blender/editors/space_sequencer/sequencer_select.c b/source/blender/editors/space_sequencer/sequencer_select.c index 0cf43409f2e..a9f8a70d61e 100644 --- a/source/blender/editors/space_sequencer/sequencer_select.c +++ b/source/blender/editors/space_sequencer/sequencer_select.c @@ -548,11 +548,12 @@ static int sequencer_select_exec(bContext *C, wmOperator *op) const float x = UI_view2d_region_to_view_x(v2d, mval[0]); - LISTBASE_FOREACH (Sequence *, seq, SEQ_active_seqbase_get(ed)) { - if (((x < CFRA) && (seq->enddisp <= CFRA)) || ((x >= CFRA) && (seq->startdisp >= CFRA))) { + LISTBASE_FOREACH (Sequence *, seq_iter, SEQ_active_seqbase_get(ed)) { + if (((x < CFRA) && (seq_iter->enddisp <= CFRA)) || + ((x >= CFRA) && (seq_iter->startdisp >= CFRA))) { /* Select left or right. */ - seq->flag |= SELECT; - recurs_sel_seq(seq); + seq_iter->flag |= SELECT; + recurs_sel_seq(seq_iter); } } @@ -1623,7 +1624,6 @@ static bool select_grouped_time_overlap(Editing *ed, Sequence *actseq) static bool select_grouped_effect_link(Editing *ed, Sequence *actseq, const int channel) { - Sequence *seq = NULL; bool changed = false; const bool is_audio = ((actseq->type == SEQ_TYPE_META) || SEQ_IS_SOUND(actseq)); int startdisp = actseq->startdisp; @@ -1637,6 +1637,7 @@ static bool select_grouped_effect_link(Editing *ed, Sequence *actseq, const int actseq->tmp = POINTER_FROM_INT(true); + Sequence *seq = NULL; for (SEQ_iterator_begin(ed, &iter, true); iter.valid; SEQ_iterator_next(&iter)) { seq = iter.seq; |