Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-01-10 14:10:34 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-01-10 14:10:34 +0400
commit860d42b9a33b2f348f962f3f41f6fa171cd1f1ce (patch)
tree3947da41ee6661bea91a48b9a48be68e008574fe /release/scripts/startup/bl_ui/properties_texture.py
parent53ad8274b00698e8f13ef6c931f057e0afd34661 (diff)
Fix #33816: property not found: World.use_textures
Issue was caused bu svn rev53355 and now logic seems to mimic behavior before that change.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_texture.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_texture.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_texture.py b/release/scripts/startup/bl_ui/properties_texture.py
index eddb542ccc3..6842b324b0e 100644
--- a/release/scripts/startup/bl_ui/properties_texture.py
+++ b/release/scripts/startup/bl_ui/properties_texture.py
@@ -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'