[Bf-blender-cvs] [d0c17ef893f] greasepencil-object: Fix T51942: Color not updated in UI panel

Antonio Vazquez noreply at git.blender.org
Fri Jun 30 20:02:53 CEST 2017


Commit: d0c17ef893fed7cb3186dbb957b1e0ba806a4630
Author: Antonio Vazquez
Date:   Fri Jun 30 20:02:44 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rBd0c17ef893fed7cb3186dbb957b1e0ba806a4630

Fix T51942: Color not updated in UI panel

When update the color in the panel, the color box was not updated after release control.

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

M	source/blender/makesrna/intern/rna_palette.c

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

diff --git a/source/blender/makesrna/intern/rna_palette.c b/source/blender/makesrna/intern/rna_palette.c
index 928bd43129b..f326cd71b03 100644
--- a/source/blender/makesrna/intern/rna_palette.c
+++ b/source/blender/makesrna/intern/rna_palette.c
@@ -55,7 +55,7 @@
 static void rna_GPencil_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr))
 {
 	BKE_gpencil_batch_cache_alldirty();
-	WM_main_add_notifier(NC_GPENCIL | NA_EDITED, NULL);
+	WM_main_add_notifier(NC_SCREEN | NC_GPENCIL | NA_EDITED, NULL);
 }
 
 static PaletteColor *rna_Palette_color_new(Palette *palette)




More information about the Bf-blender-cvs mailing list