diff options
author | Joshua Leung <aligorith@gmail.com> | 2017-09-03 03:46:01 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2017-09-03 03:49:17 +0300 |
commit | b227a3388d44ef56df91a65e6973f2cde687a032 (patch) | |
tree | 436d175cc56398d07b5b3507ddc3e2f40ab70c7a /source | |
parent | 4f6196a04131a462a1f0712ac7d0f9eb6fb0c150 (diff) |
Fix: Deleting GPencil keyframes in DopeSheet didn't redraw the view
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/gpencil/editaction_gpencil.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/editaction_gpencil.c b/source/blender/editors/gpencil/editaction_gpencil.c index 9227f9b1097..90d44503013 100644 --- a/source/blender/editors/gpencil/editaction_gpencil.c +++ b/source/blender/editors/gpencil/editaction_gpencil.c @@ -252,8 +252,10 @@ bool ED_gplayer_frames_delete(bGPDlayer *gpl) for (gpf = gpl->frames.first; gpf; gpf = gpfn) { gpfn = gpf->next; - if (gpf->flag & GP_FRAME_SELECT) - changed |= BKE_gpencil_layer_delframe(gpl, gpf); + if (gpf->flag & GP_FRAME_SELECT) { + BKE_gpencil_layer_delframe(gpl, gpf); + changed = true; + } } return changed; |