[Bf-blender-cvs] [045b26d] master: Fix T41843: World preview not updating when changing world.

Bastien Montagne noreply at git.blender.org
Tue Sep 16 14:29:57 CEST 2014


Commit: 045b26dbf5ab239eb893884164f4eda3e0f23038
Author: Bastien Montagne
Date:   Tue Sep 16 14:28:44 2014 +0200
Branches: master
https://developer.blender.org/rB045b26dbf5ab239eb893884164f4eda3e0f23038

Fix T41843: World preview not updating when changing world.

NC_SCENE | ND_WORLD was not handled by buttons space...

===================================================================

M	source/blender/editors/space_buttons/space_buttons.c

===================================================================

diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c
index 8c6bf67..4d62f52 100644
--- a/source/blender/editors/space_buttons/space_buttons.c
+++ b/source/blender/editors/space_buttons/space_buttons.c
@@ -233,6 +233,10 @@ static void buttons_area_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *
 					buttons_area_redraw(sa, BCONTEXT_RENDER);
 					buttons_area_redraw(sa, BCONTEXT_RENDER_LAYER);
 					break;
+				case ND_WORLD:
+					buttons_area_redraw(sa, BCONTEXT_WORLD);
+					sbuts->preview = 1;
+					break;
 				case ND_FRAME:
 					/* any buttons area can have animated properties so redraw all */
 					ED_area_tag_redraw(sa);




More information about the Bf-blender-cvs mailing list