Fix T64455 Texture extension mode 'clip' defaults to 'extend'
authorClément Foucault <foucault.clem@gmail.com>
Tue, 14 May 2019 17:34:31 +0000 (19:34 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Tue, 14 May 2019 17:59:07 +0000 (19:59 +0200)
source/blender/nodes/shader/nodes/node_shader_tex_image.c

index 95e7649..924714e 100644 (file)
@@ -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);
     }
   }