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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-02 17:04:53 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-03 13:56:39 +0300
commit44d47526af771ce3434950441aa449a6d6eeb9d3 (patch)
treed4464c322804124d6c3d3b080f75d6683d184614
parente5387eef1890b7af7320455cccf68303ebecb086 (diff)
Fix icon alpha theme option not working for monochrome icons.
-rw-r--r--source/blender/editors/interface/interface_icons.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c
index 70e9a25d086..162687c64ff 100644
--- a/source/blender/editors/interface/interface_icons.c
+++ b/source/blender/editors/interface/interface_icons.c
@@ -1536,7 +1536,8 @@ static void icon_draw_size(
if (rgb) {
mul_v3_v3(color, rgb);
}
- color[3] *= alpha;
+
+ mul_v4_fl(color, alpha);
GPU_blend_set_func(GPU_ONE, GPU_ONE_MINUS_SRC_ALPHA);
icon_draw_texture(x, y, (float)w, (float)h, di->data.texture.x, di->data.texture.y,