[Bf-blender-cvs] [f66c80f7043] temp-lanpr-cleanup: Fix T69883: Deleting keyframe crashes blender

Antonio Vazquez noreply at git.blender.org
Mon Sep 16 14:56:26 CEST 2019


Commit: f66c80f7043259fd6357590043e2021f210f0dbf
Author: Antonio Vazquez
Date:   Sun Sep 15 18:56:38 2019 +0200
Branches: temp-lanpr-cleanup
https://developer.blender.org/rBf66c80f7043259fd6357590043e2021f210f0dbf

Fix T69883: Deleting keyframe crashes blender

When delete in multiframe node the active frame gets NULL.

===================================================================

M	source/blender/draw/engines/gpencil/gpencil_draw_utils.c

===================================================================

diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
index fbaf35890f1..a73c24d2892 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -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 */



More information about the Bf-blender-cvs mailing list