[Bf-blender-cvs] [d6fd6d1] master: Fix: Toggling "lock layer" for GPencil layers in the dopesheet didn't update the layers UI

Joshua Leung noreply at git.blender.org
Sun May 8 16:53:33 CEST 2016


Commit: d6fd6d18d763166ee84d5512522f15c81cc79363
Author: Joshua Leung
Date:   Mon May 9 02:49:32 2016 +1200
Branches: master
https://developer.blender.org/rBd6fd6d18d763166ee84d5512522f15c81cc79363

Fix: Toggling "lock layer" for GPencil layers in the dopesheet didn't update the layers UI

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

M	source/blender/editors/animation/anim_channels_defines.c

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

diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c
index 9d54fd8..ea2f7fc 100644
--- a/source/blender/editors/animation/anim_channels_defines.c
+++ b/source/blender/editors/animation/anim_channels_defines.c
@@ -3818,6 +3818,9 @@ static void achannel_setting_flush_widget_cb(bContext *C, void *ale_npoin, void
 	/* send notifiers before doing anything else... */
 	WM_event_add_notifier(C, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL);
 	
+	if (ale_setting->type == ANIMTYPE_GPLAYER)
+		WM_event_add_notifier(C, NC_GPENCIL | ND_DATA, NULL);
+	
 	/* verify animation context */
 	if (ANIM_animdata_get_context(C, &ac) == 0)
 		return;




More information about the Bf-blender-cvs mailing list