From: Thomas Dinges Date: Sun, 22 Aug 2010 17:51:58 +0000 (+0000) Subject: Fix for [#22741] Material preview doesn't update when "undo" is used to revert a... X-Git-Tag: v2.54~272 X-Git-Url: https://git.blender.org/gitweb/gitweb.cgi/blender.git/commitdiff_plain/8a320974f1b3e6004db3b3ad64f97742f878cbee Fix for [#22741] Material preview doesn't update when "undo" is used to revert a setting. * Buttons window listens to NC_WINDOW now. --- 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)