Fix T88100: Crash going to shading tab

This commit is contained in:
2021-05-07 12:43:43 +02:00
parent 6b46e9e524
commit 23acca0c32

View File

@@ -40,15 +40,17 @@ struct GSetIterator;
#define SEQ_ALL_BEGIN(ed, var) \
{ \
SeqCollection *all_strips = SEQ_query_all_strips_recursive(&ed->seqbase); \
GSetIterator gsi; \
GSET_ITER (gsi, all_strips->set) { \
var = (Sequence *)(BLI_gsetIterator_getKey(&gsi));
if (ed != NULL) { \
SeqCollection *all_strips = SEQ_query_all_strips_recursive(&ed->seqbase); \
GSetIterator gsi; \
GSET_ITER (gsi, all_strips->set) { \
var = (Sequence *)(BLI_gsetIterator_getKey(&gsi));
#define SEQ_ALL_END \
} \
SEQ_collection_free(all_strips); \
} \
} \
((void)0)
typedef struct SeqCollection {