Also fix Anim Player button for node editor
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 3 Jul 2012 16:04:26 +0000 (16:04 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 3 Jul 2012 16:04:26 +0000 (16:04 +0000)
source/blender/editors/space_node/space_node.c

index 3a834ef633153c14ed317c9b7e304ac0e70ba209..349259ad71b6fdae3a8c59e5398f0df6341da1e5 100644 (file)
@@ -448,8 +448,15 @@ static void node_region_listener(ARegion *ar, wmNotifier *wmn)
                                ED_region_tag_redraw(ar);
                        break;
                case NC_SCREEN:
-                       if (wmn->data == ND_GPENCIL)
-                               ED_region_tag_redraw(ar);
+                       switch (wmn->data) {
+                               case ND_GPENCIL:
+                                       ED_region_tag_redraw(ar);
+                                       break;
+                               case ND_SCREENCAST:
+                               case ND_ANIMPLAY:
+                                       ED_region_tag_redraw(ar);
+                                       break;
+                       }
                        break;
                case NC_SCENE:
                case NC_MATERIAL: