Cycles: working towards texture workflow design
[blender.git] / source / blender / nodes / intern / SHD_nodes / SHD_tex_musgrave.c
index 0400ac26c91e8bd7383a03aea5cb68803305b58f..8b04dc267543fd9b754a5a52cb4a94533a49723f 100644 (file)
@@ -264,6 +264,9 @@ static void node_shader_exec_tex_musgrave(void *data, bNode *node, bNodeStack **
 
 static int node_shader_gpu_tex_musgrave(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_musgrave", in, out);
 }