Fix some issues with showing the current textures when using
[blender.git] / release / scripts / ui / buttons_texture.py
index c4866edcaaa2b1cb65e9773f6a6d54c45482b587..b76f35c3ec3c9f7242b4075d83da43b2df7d3763 100644 (file)
@@ -75,11 +75,13 @@ class TEXTURE_PT_context_texture(TextureButtonsPanel):
                        layout.itemR(tex, "use_nodes")
                        
                        split = layout.split(percentage=0.2)
-                       
+
                        if tex.use_nodes:
                                slot = context.texture_slot
-                               split.itemL(text="Output:")
-                               split.itemR(slot, "output_node", text="")
+
+                               if slot:
+                                       split.itemL(text="Output:")
+                                       split.itemR(slot, "output_node", text="")
 
                        else:
                                split.itemL(text="Type:")