[Bf-blender-cvs] [a1e8ef264f5] blender-v2.79-release: Fix: Deleting GPencil keyframes in DopeSheet didn't redraw the view

Joshua Leung noreply at git.blender.org
Mon Sep 4 13:12:52 CEST 2017


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;



More information about the Bf-blender-cvs mailing list