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:
authorAntonio Vazquez <blendergit@gmail.com>2020-06-22 20:09:11 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-06-22 20:09:11 +0300
commit9fbbd25e2a4cf7dfed121e23642ff92bb63a40df (patch)
treed303de5778e3fdaab21da65d127fbda989b2cdd5 /source/blender/editors/gpencil
parent25d2222c302acd7278b49f30a74adba6b9457012 (diff)
Fix T78134: GPencil interpolation crash
Need to verify active frame not NULL.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_interpolate.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_interpolate.c b/source/blender/editors/gpencil/gpencil_interpolate.c
index 4ddcc60fb92..88ae81ce85a 100644
--- a/source/blender/editors/gpencil/gpencil_interpolate.c
+++ b/source/blender/editors/gpencil/gpencil_interpolate.c
@@ -267,8 +267,10 @@ static void gp_interpolate_set_points(bContext *C, tGPDinterpolate *tgpi)
/* Untag strokes to be sure nothing is pending. This must be done for
* all layer because it could be anything tagged and it would be removed
* at the end of the process when all tagged strokes are removed. */
- gp_interpolate_untag_strokes(gpl->actframe);
- gp_interpolate_untag_strokes(gpl->actframe->next);
+ if (gpl->actframe != NULL) {
+ gp_interpolate_untag_strokes(gpl->actframe);
+ gp_interpolate_untag_strokes(gpl->actframe->next);
+ }
/* all layers or only active */
if (!(tgpi->flag & GP_TOOLFLAG_INTERPOLATE_ALL_LAYERS) && (gpl != active_gpl)) {