Cycles: add dedicated UV Map node, easier to find and has convenient auto complete.
[blender.git] / intern / cycles / app / cycles_xml.cpp
index 04408eb6bc09838672137c0f28c4600cf31cde68..1faf290f0ea6d56c5791ccfda28f5831e65ec795 100644 (file)
@@ -649,6 +649,11 @@ static void xml_read_shader_graph(const XMLReadState& state, Shader *shader, pug
                        xml_read_ustring(&attr->attribute, node, "attribute");
                        snode = attr;
                }
+               else if(string_iequals(node.name(), "uv_map")) {
+                       UVMapNode *uvm = new UVMapNode();
+                       xml_read_ustring(&uvm->attribute, node, "uv_map");
+                       snode = uvm;
+               }
                else if(string_iequals(node.name(), "camera")) {
                        snode = new CameraNode();
                }