Grease Pencil notifier/listener cleanup
[blender.git] / source / blender / editors / space_node / space_node.c
index 0601d7c105f6d63f6923eb9d17df27ab423e7191..b70d66f60b47b909141c67321f29616034840db0 100644 (file)
@@ -440,9 +440,6 @@ static void node_region_listener(ARegion *ar, wmNotifier *wmn)
                        break;
                case NC_SCREEN:
                        switch (wmn->data) {
-                               case ND_GPENCIL:
-                                       ED_region_tag_redraw(ar);
-                                       break;
                                case ND_SCREENCAST:
                                case ND_ANIMPLAY:
                                        ED_region_tag_redraw(ar);
@@ -463,6 +460,10 @@ static void node_region_listener(ARegion *ar, wmNotifier *wmn)
                        if (wmn->action == NA_RENAME)
                                ED_region_tag_redraw(ar);
                        break;
+               case NC_GPENCIL:
+                       if (wmn->action == NA_EDITED)
+                               ED_region_tag_redraw(ar);
+                       break;
        }
 }