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:
authorIRIE Shinsuke <irieshinsuke@yahoo.co.jp>2014-03-31 09:20:55 +0400
committerIRIE Shinsuke <irieshinsuke@yahoo.co.jp>2014-03-31 12:37:55 +0400
commit6316306cc07c77d4cf6fff52bc8a35ba102b8f56 (patch)
tree39e114bac8220770be52ca1078a0d4318ad82b92 /source/blender/editors/space_image/image_buttons.c
parent2fc7d04804fc9411647466d6765e2716e56a9cc8 (diff)
Fix bug in image texture UI: "Use Alpha" checkbox doesn't appear if file format is BMP.
Diffstat (limited to 'source/blender/editors/space_image/image_buttons.c')
-rw-r--r--source/blender/editors/space_image/image_buttons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/image_buttons.c b/source/blender/editors/space_image/image_buttons.c
index 21f54a86df4..f88cdaf6713 100644
--- a/source/blender/editors/space_image/image_buttons.c
+++ b/source/blender/editors/space_image/image_buttons.c
@@ -753,7 +753,7 @@ void uiTemplateImage(uiLayout *layout, bContext *C, PointerRNA *ptr, const char
if (ibuf) {
int imtype = BKE_ftype_to_imtype(ibuf->ftype);
- char valid_channels = BKE_imtype_valid_channels(imtype);
+ char valid_channels = BKE_imtype_valid_channels(imtype, false);
has_alpha = (valid_channels & IMA_CHAN_FLAG_ALPHA) != 0;