Outliner - Notify on GP Layer Change
authorHarley Acheson <harley.acheson@gmail.com>
Fri, 14 Jun 2019 16:48:42 +0000 (09:48 -0700)
committerHarley Acheson <harley.acheson@gmail.com>
Fri, 14 Jun 2019 16:48:42 +0000 (09:48 -0700)
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

release/scripts/addons
release/scripts/addons_contrib
source/blender/editors/space_buttons/space_buttons.c
source/blender/editors/space_outliner/outliner_draw.c
source/tools

index 290ed76..a30fce5 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 290ed760cb83079f7889fafab8f7bb7383736d54
+Subproject commit a30fce5376c5a70cb64cff58298b8a392512ef2d
index 929e9e7..28af3c0 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 929e9e75703444689704cad809f5af1ffad6c9b0
+Subproject commit 28af3c079ef39175eed36c435bd1b9e4c401c3e6
index 9b0150d..129f249 100644 (file)
@@ -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;
index 2541d0a..40632ee 100644 (file)
@@ -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: {
index 2afbb8e..33d3969 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 2afbb8ec472cac5102eb239f57b006f8c9387685
+Subproject commit 33d3969202b855305a9823a9bc67a1d56e4546c2