Commit: a1e8ef264f5b01005658535406c36b445014df9b
Author: Joshua Leung
Date:   Sun Sep 3 12:46:01 2017 +1200
Branches: blender-v2.79-release
https://developer.blender.org/rBa1e8ef264f5b01005658535406c36b445014df9b

Fix: Deleting GPencil keyframes in DopeSheet didn't redraw the view

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

M       source/blender/editors/gpencil/editaction_gpencil.c

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

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;

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

Reply via email to