[Bf-blender-cvs] [e76b223ea3e] master: Outliner - Notify on GP Layer Change
Harley Acheson
noreply at git.blender.org
Fri Jun 14 18:50:11 CEST 2019
Commit: e76b223ea3e110485146d299714504ef84adf634
Author: Harley Acheson
Date: Fri Jun 14 09:48:42 2019 -0700
Branches: master
https://developer.blender.org/rBe76b223ea3e110485146d299714504ef84adf634
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
===================================================================
M release/scripts/addons
M release/scripts/addons_contrib
M source/blender/editors/space_buttons/space_buttons.c
M source/blender/editors/space_outliner/outliner_draw.c
M source/tools
===================================================================
diff --git a/release/scripts/addons b/release/scripts/addons
index 290ed760cb8..a30fce5376c 160000
--- a/release/scripts/addons
+++ b/release/scripts/addons
@@ -1 +1 @@
-Subproject commit 290ed760cb83079f7889fafab8f7bb7383736d54
+Subproject commit a30fce5376c5a70cb64cff58298b8a392512ef2d
diff --git a/release/scripts/addons_contrib b/release/scripts/addons_contrib
index 929e9e75703..28af3c079ef 160000
--- a/release/scripts/addons_contrib
+++ b/release/scripts/addons_contrib
@@ -1 +1 @@
-Subproject commit 929e9e75703444689704cad809f5af1ffad6c9b0
+Subproject commit 28af3c079ef39175eed36c435bd1b9e4c401c3e6
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
index 2afbb8ec472..33d3969202b 160000
--- a/source/tools
+++ b/source/tools
@@ -1 +1 @@
-Subproject commit 2afbb8ec472cac5102eb239f57b006f8c9387685
+Subproject commit 33d3969202b855305a9823a9bc67a1d56e4546c2
More information about the Bf-blender-cvs
mailing list