From 8a320974f1b3e6004db3b3ad64f97742f878cbee Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Sun, 22 Aug 2010 17:51:58 +0000 Subject: [PATCH] Fix for [#22741] Material preview doesn't update when "undo" is used to revert a setting. * Buttons window listens to NC_WINDOW now. --- source/blender/editors/space_buttons/space_buttons.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.28.0