Sequencer: prevent unknown scopes from crashing
This commit is contained in:
@@ -1020,9 +1020,15 @@ void draw_image_seq(const bContext *C, Scene *scene, ARegion *ar, SpaceSeq *sseq
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
scopes->reference_ibuf = ibuf;
|
/* future files may have new scopes we don't catch above */
|
||||||
viewrectx = scope->x;
|
if (scope) {
|
||||||
viewrecty = scope->y;
|
scopes->reference_ibuf = ibuf;
|
||||||
|
viewrectx = scope->x;
|
||||||
|
viewrecty = scope->y;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
scopes->reference_ibuf = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* without this colors can flicker from previous opengl state */
|
/* without this colors can flicker from previous opengl state */
|
||||||
|
|||||||
Reference in New Issue
Block a user