Properties Editor / UI:

* Fix a py error in the "Image Sampling" panel, tex.image can be NULL.
This commit is contained in:
Thomas Dinges
2013-09-28 19:56:08 +00:00
parent f18f2fbb33
commit c662b247f6

View File

@@ -476,7 +476,8 @@ class TEXTURE_PT_image_sampling(TextureTypePanel, Panel):
col = split.column()
col.label(text="Alpha:")
row = col.row()
row.active = tex.image and tex.image.use_alpha
if not (tex.image and tex.image.use_alpha):
row.active = False
row.prop(tex, "use_alpha", text="Use")
col.prop(tex, "use_calculate_alpha", text="Calculate")
col.prop(tex, "invert_alpha", text="Invert")