1
1

FIX: T91697 Eevee Generated texture coordinates completly missing

This patch fixes Eevee-regression https://developer.blender.org/T91697

Reviewed By: jbakker

Differential Revision: https://developer.blender.org/D12634
This commit is contained in:
Lasse Foster
2021-09-27 08:04:18 +02:00
committed by Jeroen Bakker
parent d2dda0e8b9
commit 037e66999a

View File

@@ -718,7 +718,7 @@ static char *code_generate_vertex(GPUNodeGraph *graph,
BLI_dynstr_append(ds, datatoc_gpu_shader_common_obinfos_lib_glsl);
BLI_dynstr_append(ds, "DEFINE_ATTR(vec4, orco);\n");
}
if (attr->type == CD_HAIRLENGTH) {
else if (attr->type == CD_HAIRLENGTH) {
BLI_dynstr_append(ds, datatoc_gpu_shader_common_obinfos_lib_glsl);
BLI_dynstr_append(ds, "DEFINE_ATTR(float, hairLen);\n");
}