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:
authorJoshua Leung <aligorith@gmail.com>2017-09-03 03:46:01 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-09-04 14:03:09 +0300
commita1e8ef264f5b01005658535406c36b445014df9b (patch)
tree3a3ac7f5be2be859f4cd9644c424d2ecf5be3952
parentf5d02f055fd04dd7df4e565dc40d9db022c16c2e (diff)
Fix: Deleting GPencil keyframes in DopeSheet didn't redraw the view
-rw-r--r--source/blender/editors/gpencil/editaction_gpencil.c6
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;