Properties Editor / UI:
* Fix a py error in the "Image Sampling" panel, tex.image can be NULL.
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user