Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-09-29 06:07:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-09-29 06:07:48 +0400
commit6d0284f934bda14cd83c3e3808ed944d972f0d22 (patch)
tree2cdd82e4679ea3fd50815f5e92edc6020aa894eb /release/scripts/startup/bl_ui/properties_texture.py
parent2acfd3f96a4d1750d97c8ec1c3978d57734147e0 (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.py3
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")