From e76b223ea3e110485146d299714504ef84adf634 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Fri, 14 Jun 2019 09:48:42 -0700 Subject: 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 --- source/blender/editors/space_buttons/space_buttons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_buttons/space_buttons.c') 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; -- cgit v1.2.3