diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-29 06:07:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-29 06:07:48 +0400 |
commit | 6d0284f934bda14cd83c3e3808ed944d972f0d22 (patch) | |
tree | 2cdd82e4679ea3fd50815f5e92edc6020aa894eb /release/scripts/startup/bl_ui/properties_texture.py | |
parent | 2acfd3f96a4d1750d97c8ec1c3978d57734147e0 (diff) |
minor edit on r60413, convert to a bool.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_texture.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_texture.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_texture.py b/release/scripts/startup/bl_ui/properties_texture.py index 86fa1197b89..023b3a13848 100644 --- a/release/scripts/startup/bl_ui/properties_texture.py +++ b/release/scripts/startup/bl_ui/properties_texture.py @@ -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") |