Fix crash switching scenes with sequencer gizmos displayed

This commit is contained in:
Campbell Barton 2021-10-08 17:22:10 +11:00
parent ebe216f532
commit 415098abc3
1 changed files with 5 additions and 0 deletions

View File

@ -96,6 +96,11 @@ static bool gizmo2d_generic_poll(const bContext *C, wmGizmoGroupType *gzgt)
if (sseq->gizmo_flag & (SEQ_GIZMO_HIDE | SEQ_GIZMO_HIDE_TOOL)) {
return false;
}
Scene *scene = CTX_data_scene(C);
Editing *ed = SEQ_editing_get(scene);
if (ed == NULL) {
return false;
}
break;
}
}