Bugfix #21339: Grease Pencil operator weirdness
authorJoshua Leung <aligorith@gmail.com>
Fri, 26 Feb 2010 10:01:49 +0000 (10:01 +0000)
committerJoshua Leung <aligorith@gmail.com>
Fri, 26 Feb 2010 10:01:49 +0000 (10:01 +0000)
Fixed missing listener for Grease Pencil notifiers when drawing.

source/blender/editors/space_view3d/space_view3d.c

index 1c04667e5019437519c6e1e5bbcd788fbf5ffa85..fc67881367f96096339ac7042c568a6095687fdd 100644 (file)
@@ -751,6 +751,10 @@ 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)
+                               ED_region_tag_redraw(ar);
+                       break;
        }
 }