Fix T60351: Blender crashes when using fill tool without existent keyframe
This commit is contained in:
parent
90e354fd7a
commit
513bc5954c
Notes:
blender-bot
2023-02-14 07:17:43 +01:00
Referenced by issue #60351, Blender crashes when using fill tool without existent keyframe
|
@ -222,7 +222,7 @@ static void gp_draw_datablock(tGPDfill *tgpf, const float ink[4])
|
|||
|
||||
/* if active layer and no keyframe, create a new one */
|
||||
if (gpl == tgpf->gpl) {
|
||||
if (gpl->actframe->framenum != cfra_eval) {
|
||||
if ((gpl->actframe == NULL) || (gpl->actframe->framenum != cfra_eval)) {
|
||||
BKE_gpencil_layer_getframe(gpl, cfra_eval, GP_GETFRAME_ADD_NEW);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue