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:
authorClément Foucault <foucault.clem@gmail.com>2019-07-01 23:32:25 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-07-01 23:32:25 +0300
commitcbc0ad07b3c8143439305d54f3f36e0180351ac1 (patch)
treedf56df470238c81fbfaa8a4a418ffa74fad22a6a /source/blender/draw/engines/workbench
parent2002b29ecd2b8fff6f1320fa194f8d7525bf9b2e (diff)
Fix T65974 Workbench: transparency rendering broken
Diffstat (limited to 'source/blender/draw/engines/workbench')
-rw-r--r--source/blender/draw/engines/workbench/workbench_materials.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_materials.c b/source/blender/draw/engines/workbench/workbench_materials.c
index 0bbe7c978be..76f035562e5 100644
--- a/source/blender/draw/engines/workbench/workbench_materials.c
+++ b/source/blender/draw/engines/workbench/workbench_materials.c
@@ -172,6 +172,7 @@ uint workbench_material_get_hash(WORKBENCH_MaterialData *material_template, bool
input[3] = (uint)(material_template->roughness * 512);
result += BLI_ghashutil_uinthash_v4_murmur(input);
+ result += BLI_ghashutil_uinthash((uint)(material_template->alpha * 512));
result += BLI_ghashutil_uinthash((uint)is_ghost);
result += BLI_ghashutil_uinthash(material_template->color_type);