Fix #33816: property not found: World.use_textures
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 10 Jan 2013 10:10:34 +0000 (10:10 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 10 Jan 2013 10:10:34 +0000 (10:10 +0000)
Issue was caused bu svn rev53355 and now logic seems to mimic
behavior before that change.

release/scripts/startup/bl_ui/properties_texture.py

index eddb542ccc3ca91958e6b86edc2c00327db8af35..6842b324b0eb58d540d819a72bd1d7169b7731d9 100644 (file)
@@ -64,7 +64,7 @@ class TEXTURE_UL_texslots(UIList):
         tex = slot.texture if slot else None
         if self.layout_type in {'DEFAULT', 'COMPACT'}:
             layout.label(tex.name if tex else "", icon_value=icon)
-            if tex:
+            if tex and isinstance(item, bpy.types.MaterialTextureSlot):
                 layout.prop(ma, "use_textures", text="", index=index)
         elif self.layout_type in {'GRID'}:
             layout.alignment = 'CENTER'