forked from bartvdbraak/blender
patch [#17275] Fix for: pressing delete on an empty sequencer pops up a confirmation
from Roelf De Kock (kiemdoder) to address report #15025
This commit is contained in:
parent
eda5b6d736
commit
2fc5281c83
@ -2135,12 +2135,25 @@ void del_seq(void)
|
||||
Sequence *seq;
|
||||
MetaStack *ms;
|
||||
Editing *ed;
|
||||
|
||||
if(okee("Erase selected")==0) return;
|
||||
int nothingSelected = TRUE;
|
||||
|
||||
ed= G.scene->ed;
|
||||
if(ed==0) return;
|
||||
|
||||
seq=get_last_seq();
|
||||
if (seq && seq->flag & SELECT) { /* avoid a loop since this is likely to be selected */
|
||||
nothingSelected = FALSE;
|
||||
} else {
|
||||
for (seq = ed->seqbasep->first; seq; seq = seq->next) {
|
||||
if (seq->flag & SELECT) {
|
||||
nothingSelected = FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(nothingSelected || okee("Erase selected")==0) return;
|
||||
|
||||
/* free imbufs of all dependent strips */
|
||||
for(seq=ed->seqbasep->first; seq; seq=seq->next)
|
||||
if(seq->flag & SELECT)
|
||||
|
Loading…
Reference in New Issue
Block a user