Cycles: add dedicated UV Map node, easier to find and has convenient auto complete.
[blender.git] / intern / cycles / blender / blender_shader.cpp
index 1559a96a3d3392120964c7a7ba75f2b202524665..2eafcecf026ef1edbadd284f0977cc50454ba0ce 100644 (file)
@@ -668,6 +668,13 @@ static ShaderNode *add_node(Scene *scene, BL::BlendData b_data, BL::Scene b_scen
                tangent->attribute = b_tangent_node.uv_map();
                node = tangent;
        }
+       else if (b_node.is_a(&RNA_ShaderNodeUVMap)) {
+               BL::ShaderNodeUVMap b_uvmap_node(b_node);
+               UVMapNode *uvm = new UVMapNode();
+               uvm->attribute = b_uvmap_node.uv_map();
+               uvm->from_dupli = b_uvmap_node.from_dupli();
+               node = uvm;
+       }
 
        if(node)
                graph->add(node);