minor edit on r60413, convert to a bool.

This commit is contained in:
Campbell Barton
2013-09-29 02:07:48 +00:00
parent 2acfd3f96a
commit 6d0284f934

View File

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