Fix T88100: Crash going to shading tab

This commit is contained in:
Sergey Sharybin 2021-05-07 12:43:43 +02:00
parent 6b46e9e524
commit 23acca0c32
Notes: blender-bot 2023-02-14 05:36:11 +01:00
Referenced by issue #88100, Crash going to shading tab (probably elsewhere, too)
1 changed files with 6 additions and 4 deletions

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 {