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>2018-08-14 21:26:21 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-08-14 22:38:13 +0300
commit485b8d41be603624fb1777495ecaaaa9d02bab4d (patch)
tree0b3a0280673916f3c7a86921f8c9735acb962ce2 /source/blender/draw/engines/workbench/workbench_forward.c
parenta5d72bac8e2309470781d6a77335583bbfa0a903 (diff)
Workbench: Add support for the xray object option
Xray object can be see through other objects. They cast shadows as well but cannot receive then.
Diffstat (limited to 'source/blender/draw/engines/workbench/workbench_forward.c')
-rw-r--r--source/blender/draw/engines/workbench/workbench_forward.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_forward.c b/source/blender/draw/engines/workbench/workbench_forward.c
index c81ecc492db..211cfa4ab8c 100644
--- a/source/blender/draw/engines/workbench/workbench_forward.c
+++ b/source/blender/draw/engines/workbench/workbench_forward.c
@@ -153,7 +153,7 @@ static WORKBENCH_MaterialData *get_or_create_material_data(
material_template.object_id = OBJECT_ID_PASS_ENABLED(wpd) ? engine_object_data->object_id : 1;
material_template.color_type = color_type;
material_template.ima = ima;
- uint hash = workbench_material_get_hash(&material_template);
+ uint hash = workbench_material_get_hash(&material_template, false);
material = BLI_ghash_lookup(wpd->material_hash, SET_UINT_IN_POINTER(hash));
if (material == NULL) {