From c3dbb533b2e4d1585f1deac98c60b9e9b35f3fe3 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 27 Sep 2015 02:40:30 +0200 Subject: Fix T46271: switching between textures in texture buttons not updating preview. --- source/blender/editors/space_buttons/buttons_texture.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/editors/space_buttons/buttons_texture.c b/source/blender/editors/space_buttons/buttons_texture.c index b56ff850c35..6bdcee8aaef 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; -- cgit v1.2.3