Fix T69883: Deleting keyframe crashes blender

When delete in multiframe node the active frame gets NULL.
This commit is contained in:
2019-09-15 18:56:38 +02:00
parent 8e62fdbcbd
commit bdc94ef4b9

View File

@@ -1185,7 +1185,8 @@ static void gpencil_draw_strokes(GpencilBatchCache *cache,
}
}
if ((gpl->actframe->framenum == gpf->framenum) || (!is_multiedit) || (overlay_multiedit)) {
if ((gpl->actframe) && (gpl->actframe->framenum == gpf->framenum) || (!is_multiedit) ||
(overlay_multiedit)) {
/* hide any blend layer */
if ((!stl->storage->simplify_blend) || (gpl->blend_mode == eGplBlendMode_Regular)) {
/* fill */