[Bf-blender-cvs] [50d65d5a2e5] blender-v2.82-release: Fix: icon alpha theme option does not affect toolbar icons correctly
Yevgeny Makarov
noreply at git.blender.org
Tue Jan 28 10:15:45 CET 2020
Commit: 50d65d5a2e533c0548d00d2840aeb9fa04d3e463
Author: Yevgeny Makarov
Date: Tue Jan 28 10:13:53 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rB50d65d5a2e533c0548d00d2840aeb9fa04d3e463
Fix: icon alpha theme option does not affect toolbar icons correctly
Differential Revision: https://developer.blender.org/D6535
===================================================================
M source/blender/editors/interface/interface_icons.c
===================================================================
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c
index 5f25316cf25..4770a85460b 100644
--- a/source/blender/editors/interface/interface_icons.c
+++ b/source/blender/editors/interface/interface_icons.c
@@ -1506,7 +1506,7 @@ static void icon_draw_rect(float x,
return;
}
/* modulate color */
- float col[4] = {1.0f, 1.0f, 1.0f, alpha};
+ float col[4] = {alpha, alpha, alpha, alpha};
/* rect contains image in 'rendersize', we only scale if needed */
if (rw != w || rh != h) {
More information about the Bf-blender-cvs
mailing list