Fix for [#22741] Material preview doesn't update when "undo" is used to revert a...
authorThomas Dinges <blender@dingto.org>
Sun, 22 Aug 2010 17:51:58 +0000 (17:51 +0000)
committerThomas Dinges <blender@dingto.org>
Sun, 22 Aug 2010 17:51:58 +0000 (17:51 +0000)
* Buttons window listens to NC_WINDOW now.

source/blender/editors/space_buttons/space_buttons.c

index c890a3f3273ab423c35d82c0d68a8be5e7615f19..9d34b827ff9c771c54960721d4311b6d39fff8db 100644 (file)
@@ -350,6 +350,10 @@ static void buttons_area_listener(ScrArea *sa, wmNotifier *wmn)
                                                ED_area_tag_redraw(sa);
                                        break;
                        }
+               /* Listener for preview render, when doing an global undo. */
+               case NC_WINDOW:
+                       ED_area_tag_redraw(sa);
+                       sbuts->preview= 1;
        }
 
        if(wmn->data == ND_KEYS)