[Bf-blender-cvs] [3bc16c3] master: Fix T46271: switching between textures in texture buttons not updating preview.

Brecht Van Lommel noreply at git.blender.org
Sun Sep 27 02:41:49 CEST 2015


Commit: 3bc16c3362d31add3c18490ec3650bed2a23958b
Author: Brecht Van Lommel
Date:   Sun Sep 27 02:40:30 2015 +0200
Branches: master
https://developer.blender.org/rB3bc16c3362d31add3c18490ec3650bed2a23958b

Fix T46271: switching between textures in texture buttons not updating preview.

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

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

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

diff --git a/source/blender/editors/space_buttons/buttons_texture.c b/source/blender/editors/space_buttons/buttons_texture.c
index b56ff85..6bdcee8 100644
--- a/source/blender/editors/space_buttons/buttons_texture.c
+++ b/source/blender/editors/space_buttons/buttons_texture.c
@@ -539,6 +539,9 @@ static void template_texture_select(bContext *C, void *user_p, void *UNUSED(arg)
 				if (user->ptr.data == part->mtex[a])
 					part->texact = a;
 		}
+
+		if (sbuts && tex)
+			sbuts->preview = 1;
 	}
 
 	ct->user = user;




More information about the Bf-blender-cvs mailing list