[Bf-blender-cvs] [2f6c4e5bb48] master: Fix T64455 Texture extension mode 'clip' defaults to 'extend'

Clément Foucault noreply at git.blender.org
Tue May 14 19:59:11 CEST 2019


Commit: 2f6c4e5bb48f974c3534fcda661366edf478f569
Author: Clément Foucault
Date:   Tue May 14 19:34:31 2019 +0200
Branches: master
https://developer.blender.org/rB2f6c4e5bb48f974c3534fcda661366edf478f569

Fix T64455 Texture extension mode 'clip' defaults to 'extend'

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

M	source/blender/nodes/shader/nodes/node_shader_tex_image.c

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

diff --git a/source/blender/nodes/shader/nodes/node_shader_tex_image.c b/source/blender/nodes/shader/nodes/node_shader_tex_image.c
index 95e76491b4a..924714e561a 100644
--- a/source/blender/nodes/shader/nodes/node_shader_tex_image.c
+++ b/source/blender/nodes/shader/nodes/node_shader_tex_image.c
@@ -174,6 +174,7 @@ static int node_shader_gpu_tex_image(GPUMaterial *mat,
   if (tex->projection != SHD_PROJ_BOX) {
     if (do_texco_clip) {
       gpu_node_name = names_clip[tex->interpolation];
+      in[0].link = input_coords;
       GPU_stack_link(mat, node, gpu_node_name, in, out, GPU_image(ima, iuser), out[0].link);
     }
   }



More information about the Bf-blender-cvs mailing list