diff options
author | Falk David <falkdavid@gmx.de> | 2021-02-15 22:29:52 +0300 |
---|---|---|
committer | Falk David <falkdavid@gmx.de> | 2021-02-15 22:30:13 +0300 |
commit | c53022768b13831c38d2b687f99b7f9cbb919892 (patch) | |
tree | 3abd93a8976d83a65d10b417bf679562ffb62080 /source/blender/blenkernel/intern/gpencil.c | |
parent | ae370e292af2f7092db02301e9deb6dd9d7a1441 (diff) |
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
Diffstat (limited to 'source/blender/blenkernel/intern/gpencil.c')
-rw-r--r-- | source/blender/blenkernel/intern/gpencil.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |