Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-01-09 18:39:07 +0300
committerAntonioya <blendergit@gmail.com>2019-01-09 18:39:07 +0300
commit513bc5954c714edfbc4a48dff118ac6b83f9a7bb (patch)
tree063042f67f436fdf90795ff8df364f0838f5e760 /source/blender/editors/gpencil
parent90e354fd7a6989f6d93309a2af68b8bdb60434fc (diff)
Fix T60351: Blender crashes when using fill tool without existent keyframe
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_fill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 554b94a35f9..aa1a3a6cc76 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -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);
}
}