Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorHarley Acheson <harley.acheson@gmail.com>2019-06-14 19:48:42 +0300
committerHarley Acheson <harley.acheson@gmail.com>2019-06-14 19:48:42 +0300
commite76b223ea3e110485146d299714504ef84adf634 (patch)
tree232cadf861f3f2322664571a463fa9be9be27643 /source
parentf51de2246c7916e7855421263253bc12a6764a24 (diff)
Outliner - Notify on GP Layer Change
This adds NA_SELECTED to notifier when selecting Grease Pencil layers so Properties Editor will update Differential Revision: https://developer.blender.org/D5073 Reviewed by Dalai Felinto
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_buttons/space_buttons.c2
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c2
m---------source/tools0
3 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c
index 9b0150d731d..129f249d7d0 100644
--- a/source/blender/editors/space_buttons/space_buttons.c
+++ b/source/blender/editors/space_buttons/space_buttons.c
@@ -510,7 +510,7 @@ static void buttons_area_listener(wmWindow *UNUSED(win),
case NC_GPENCIL:
switch (wmn->data) {
case ND_DATA:
- if (ELEM(wmn->action, NA_EDITED, NA_ADDED, NA_REMOVED)) {
+ if (ELEM(wmn->action, NA_EDITED, NA_ADDED, NA_REMOVED, NA_SELECTED)) {
ED_area_tag_redraw(sa);
}
break;
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 2541d0a935c..40632eee364 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -806,7 +806,7 @@ static void namebutton_cb(bContext *C, void *tsep, char *oldname)
BLI_uniquename(
&gpd->layers, gpl, "GP Layer", '.', offsetof(bGPDlayer, info), sizeof(gpl->info));
- WM_event_add_notifier(C, NC_GPENCIL | ND_DATA, gpd);
+ WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_SELECTED, gpd);
break;
}
case TSE_R_LAYER: {
diff --git a/source/tools b/source/tools
-Subproject 2afbb8ec472cac5102eb239f57b006f8c938768
+Subproject 33d3969202b855305a9823a9bc67a1d56e4546c