Fix T46271: switching between textures in texture buttons not updating preview.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Sun, 27 Sep 2015 00:40:30 +0000 (02:40 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Sun, 27 Sep 2015 00:40:30 +0000 (02:40 +0200)
source/blender/editors/space_buttons/buttons_texture.c

index b56ff850c35eea43215a2dcffaaf825aa3d72c78..6bdcee8aaefefbecdb025323046dcb028e2f4363 100644 (file)
@@ -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;