Bugfixes for Grease Pencil and the Image Editor (includes fix for #20921):
[blender.git] / source / blender / editors / space_image / space_image.c
index e641f720054298c2fbe3455c11aa2c6d9f1d23b2..0eb377450e966f93918447bebc9056512b015060 100644 (file)
@@ -781,7 +781,10 @@ static void image_main_area_listener(ARegion *ar, wmNotifier *wmn)
 {
        /* context changes */
        switch(wmn->category) {
-               /* nothing yet */
+               case NC_SCREEN:
+                       if (wmn->data==ND_GPENCIL)
+                               ED_region_tag_redraw(ar);
+               break;
        }
 }
 
@@ -807,6 +810,10 @@ static void image_buttons_area_listener(ARegion *ar, wmNotifier *wmn)
 {
        /* context changes */
        switch(wmn->category) {
+               case NC_SCREEN:
+                       if (wmn->data==ND_GPENCIL)
+                               ED_region_tag_redraw(ar);
+                       break;
                case NC_BRUSH:
                        if(wmn->action==NA_EDITED)
                                ED_region_tag_redraw(ar);