diff options
author | Antonioya <blendergit@gmail.com> | 2018-11-10 15:06:44 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-11-10 15:06:44 +0300 |
commit | cabb918aea750ab50ca44d581c01f57dc93276b7 (patch) | |
tree | 96f02faa9631400ea7dcb0423595637e6561e2d5 /source | |
parent | f1ae7f9cc1b9578c742ef14ccde9db76fd7311fe (diff) |
GP: Keep synchronized layer list in top bar
Now when the layer is changed, the list of layers and the topbar selector keep equal.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_gpencil.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |