[Bf-blender-cvs] [c3dbb53] blender-v2.76-release: Fix T46271: switching between textures in texture buttons not updating preview.
Brecht Van Lommel
noreply at git.blender.org
Wed Sep 30 17:10:39 CEST 2015
Commit: c3dbb533b2e4d1585f1deac98c60b9e9b35f3fe3
Author: Brecht Van Lommel
Date: Sun Sep 27 02:40:30 2015 +0200
Branches: blender-v2.76-release
https://developer.blender.org/rBc3dbb533b2e4d1585f1deac98c60b9e9b35f3fe3
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