Cycles: working towards texture workflow design
[blender.git] / source / blender / nodes / intern / SHD_nodes / SHD_tex_distnoise.c
index d465499c94294c2f5c3e71a0a5a9ce7393b571c0..7eaa05c325823d7140b21a4c654dc5aea8eb8b4a 100644 (file)
@@ -91,6 +91,9 @@ static void node_shader_exec_tex_distnoise(void *data, bNode *node, bNodeStack *
 
 static int node_shader_gpu_tex_distnoise(GPUMaterial *mat, bNode *UNUSED(node), GPUNodeStack *in, GPUNodeStack *out)
 {
+       if(!in[0].link)
+               in[0].link = GPU_attribute(CD_ORCO, "");
+
        return GPU_stack_link(mat, "node_tex_distnoise", in, out);
 }