Commit: cabb918aea750ab50ca44d581c01f57dc93276b7
Author: Antonioya
Date:   Sat Nov 10 13:06:44 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBcabb918aea750ab50ca44d581c01f57dc93276b7

GP: Keep synchronized layer list in top bar

Now when the layer is changed, the list of layers and the topbar selector keep 
equal.

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

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

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

diff --git a/source/blender/makesrna/intern/rna_gpencil.c 
b/source/blender/makesrna/intern/rna_gpencil.c
index fd313ce2225..8c11909d022 100644
--- a/source/blender/makesrna/intern/rna_gpencil.c
+++ b/source/blender/makesrna/intern/rna_gpencil.c
@@ -374,7 +374,7 @@ static void rna_GPencil_active_layer_index_set(PointerRNA 
*ptr, int value)
 
        /* Now do standard updates... */
        DEG_id_tag_update(&gpd->id, OB_RECALC_DATA);
-       WM_main_add_notifier(NC_GPENCIL | NA_EDITED, NULL);
+       WM_main_add_notifier(NC_GPENCIL | ND_DATA | NA_EDITED | 
ND_SPACE_PROPERTIES, NULL);
 }
 
 static void rna_GPencil_active_layer_index_range(PointerRNA *ptr, int *min, 
int *max, int *softmin, int *softmax)

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

Reply via email to