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:
authorFalk David <falkdavid@gmx.de>2021-02-15 22:29:52 +0300
committerFalk David <falkdavid@gmx.de>2021-02-15 22:30:13 +0300
commitc53022768b13831c38d2b687f99b7f9cbb919892 (patch)
tree3abd93a8976d83a65d10b417bf679562ffb62080 /source/blender/blenkernel/intern/gpencil.c
parentae370e292af2f7092db02301e9deb6dd9d7a1441 (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.c2
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) {