[Bf-blender-cvs] [c257e1a2988] master: Fix use of removed Image.use_alpha property
Campbell Barton
noreply at git.blender.org
Thu Jun 6 06:50:28 CEST 2019
Commit: c257e1a2988df786950b75eedb9e3233f2e97631
Author: Campbell Barton
Date: Thu Jun 6 14:42:51 2019 +1000
Branches: master
https://developer.blender.org/rBc257e1a2988df786950b75eedb9e3233f2e97631
Fix use of removed Image.use_alpha property
Change missing from 7aaa7aa9dd79b8c6
===================================================================
M release/scripts/startup/bl_ui/properties_texture.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_texture.py b/release/scripts/startup/bl_ui/properties_texture.py
index 946083ea4e9..41c17831c2c 100644
--- a/release/scripts/startup/bl_ui/properties_texture.py
+++ b/release/scripts/startup/bl_ui/properties_texture.py
@@ -438,7 +438,7 @@ class TEXTURE_PT_image_alpha(TextureTypePanel, Panel):
tex = context.texture
col = layout.column()
- col.active = bool(tex.image and tex.image.use_alpha)
+ col.active = bool(tex.image and tex.image.alpha_mode != 'NONE')
col.prop(tex, "use_calculate_alpha", text="Calculate")
col.prop(tex, "invert_alpha", text="Invert")
More information about the Bf-blender-cvs
mailing list