fix for crash with GLSL material when image couldn't be loaded.

also quiet pep8 warnings.
This commit is contained in:
2011-02-10 14:59:17 +00:00
parent 1817a045b4
commit d240206c88
8 changed files with 12 additions and 13 deletions

View File

@@ -1007,7 +1007,7 @@ class TEXTURE_PT_influence(TextureSlotPanel, bpy.types.Panel):
row = layout.row()
# only show bump settings if activated but not for normalmap images
row.active = tex.use_map_normal and not( tex.texture.type == 'IMAGE' and tex.texture.use_normal_map )
row.active = tex.use_map_normal and not (tex.texture.type == 'IMAGE' and tex.texture.use_normal_map)
col = row.column()
col.prop(tex, "bump_method", text="Method")