UI:
[blender-staging.git] / release / ui / buttons_texture.py
index 286c1240d0ea011335e4c9848082964af2a91a0d..de166cef796b880e64a765aa1253a13d038ae232 100644 (file)
@@ -13,6 +13,9 @@ class TEXTURE_PT_preview(TextureButtonsPanel):
        __idname__= "TEXTURE_PT_preview"
        __label__ = "Preview"
 
+       def poll(self, context):
+               return (context.material or context.world or context.lamp or context.texture)
+
        def draw(self, context):
                layout = self.layout
                tex = context.texture
@@ -24,7 +27,7 @@ class TEXTURE_PT_texture(TextureButtonsPanel):
        __label__ = "Texture"
 
        def poll(self, context):
-               return (context.material or context.world or context.lamp)
+               return (context.material or context.world or context.lamp or context.texture)
 
        def draw(self, context):
                layout = self.layout