[Bf-blender-cvs] [b227a3388d4] master: Fix: Deleting GPencil keyframes in DopeSheet didn't redraw the view

Joshua Leung noreply at git.blender.org
Sun Sep 3 02:51:10 CEST 2017


Commit: b227a3388d44ef56df91a65e6973f2cde687a032
Author: Joshua Leung
Date:   Sun Sep 3 12:46:01 2017 +1200
Branches: master
https://developer.blender.org/rBb227a3388d44ef56df91a65e6973f2cde687a032

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;



More information about the Bf-blender-cvs mailing list