Fix #33816: property not found: World.use_textures

Issue was caused bu svn rev53355 and now logic seems to mimic
behavior before that change.
This commit is contained in:
2013-01-10 10:10:34 +00:00
parent 53ad8274b0
commit 860d42b9a3

View 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'