Grease Pencil notifier/listener cleanup
[blender.git] / source / blender / editors / space_view3d / space_view3d.c
index 1e371cb074d741c9c522e47f25138292259ffacf..236cbb86724294280fe4859cfcd9f86c8993b725 100644 (file)
@@ -776,7 +776,6 @@ static void view3d_main_area_listener(ARegion *ar, wmNotifier *wmn)
                        break;
                case NC_SCREEN:
                        switch (wmn->data) {
-                               case ND_GPENCIL:
                                case ND_ANIMPLAY:
                                case ND_SKETCH:
                                        ED_region_tag_redraw(ar);
@@ -793,6 +792,10 @@ static void view3d_main_area_listener(ARegion *ar, wmNotifier *wmn)
                        }
 
                        break;
+               case NC_GPENCIL:
+                       if (wmn->action == NA_EDITED)
+                               ED_region_tag_redraw(ar);
+                       break;
        }
 }
 
@@ -941,8 +944,8 @@ static void view3d_buttons_area_listener(ARegion *ar, wmNotifier *wmn)
                        if (wmn->action == NA_RENAME)
                                ED_region_tag_redraw(ar);
                        break;
-               case NC_SCREEN: 
-                       if (wmn->data == ND_GPENCIL)
+               case NC_GPENCIL:
+                       if (wmn->data == ND_DATA)
                                ED_region_tag_redraw(ar);
                        break;
        }