[Bf-blender-cvs] [037e66999af] master: FIX: T91697 Eevee Generated texture coordinates completly missing

Lasse Foster noreply at git.blender.org
Mon Sep 27 08:07:24 CEST 2021


Commit: 037e66999af2e0f8cd0f5bfbd0e3bc91e2581ccb
Author: Lasse Foster
Date:   Mon Sep 27 08:04:18 2021 +0200
Branches: master
https://developer.blender.org/rB037e66999af2e0f8cd0f5bfbd0e3bc91e2581ccb

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

===================================================================

M	source/blender/gpu/intern/gpu_codegen.c

===================================================================

diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c
index 6cc8d7d9d05..f0046e879a0 100644
--- a/source/blender/gpu/intern/gpu_codegen.c
+++ b/source/blender/gpu/intern/gpu_codegen.c
@@ -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");
     }



More information about the Bf-blender-cvs mailing list