Fix T69883: Deleting keyframe crashes blender
When delete in multiframe node the active frame gets NULL.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user