Commit: c53022768b13831c38d2b687f99b7f9cbb919892
Author: Falk David
Date:   Mon Feb 15 20:29:52 2021 +0100
Branches: master
https://developer.blender.org/rBc53022768b13831c38d2b687f99b7f9cbb919892

Fix T85587: Crash on selecting multiple frames

Blender would crash when selecting multiple keyframes while multiframe edit was
active. This was due to the active frame being NULL in some instances.

The fix checks if the active frame is not NULL.

Reviewed By: antoniov

Maniphest Tasks: T85587

Differential Revision: https://developer.blender.org/D10421

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

M       source/blender/blenkernel/intern/gpencil.c

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

diff --git a/source/blender/blenkernel/intern/gpencil.c 
b/source/blender/blenkernel/intern/gpencil.c
index ea7d961a573..1aec1ad296d 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -2605,7 +2605,7 @@ void BKE_gpencil_visible_stroke_iter(ViewLayer 
*view_layer,
       sta_gpf = end_gpf = NULL;
       /* Check the whole range and tag the editable frames. */
       LISTBASE_FOREACH (bGPDframe *, gpf, &gpl->frames) {
-        if (gpf == act_gpf || (gpf->flag & GP_FRAME_SELECT)) {
+        if (act_gpf != NULL && (gpf == act_gpf || (gpf->flag & 
GP_FRAME_SELECT))) {
           gpf->runtime.onion_id = 0;
           if (do_onion) {
             if (gpf->framenum < act_gpf->framenum) {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to