[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53699] trunk/blender/release/scripts/ startup/bl_ui/properties_texture.py: Fix #33816: property not found: World. use_textures

Sergey Sharybin sergey.vfx at gmail.com
Thu Jan 10 11:10:36 CET 2013


Revision: 53699
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53699
Author:   nazgul
Date:     2013-01-10 10:10:34 +0000 (Thu, 10 Jan 2013)
Log Message:
-----------
Fix #33816: property not found: World.use_textures

Issue was caused bu svn rev53355 and now logic seems to mimic
behavior before that change.

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53355

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_texture.py

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_texture.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_texture.py	2013-01-10 09:21:12 UTC (rev 53698)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_texture.py	2013-01-10 10:10:34 UTC (rev 53699)
@@ -64,7 +64,7 @@
         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'




More information about the Bf-blender-cvs mailing list