diff options
author | Thomas Dinges <blender@dingto.org> | 2010-08-22 21:51:58 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2010-08-22 21:51:58 +0400 |
commit | 8a320974f1b3e6004db3b3ad64f97742f878cbee (patch) | |
tree | 4aa5c07c8a79baef542b58008b1d4d2f286dfd8f /source/blender/editors/space_buttons/space_buttons.c | |
parent | a60f79daf784c179ef4a1bb981b1050eb28741f0 (diff) |
Fix for [#22741] Material preview doesn't update when "undo" is used to revert a setting.
* Buttons window listens to NC_WINDOW now.
Diffstat (limited to 'source/blender/editors/space_buttons/space_buttons.c')
-rw-r--r-- | source/blender/editors/space_buttons/space_buttons.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c index c890a3f3273..9d34b827ff9 100644 --- a/source/blender/editors/space_buttons/space_buttons.c +++ b/source/blender/editors/space_buttons/space_buttons.c @@ -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) |