minor edit on r60413, convert to a bool.
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user