Fix Cycles debug build assert on some platforms, tighten checks to avoid this in...
[blender.git] / intern / cycles / graph / node_xml.cpp
index 022de7cf32a36f6d7ada615234d671d6055b9498..590e09645edaf3340f8076976714c99a0bcad4ac 100644 (file)
@@ -108,6 +108,11 @@ void xml_read_node(XMLReader& reader, Node *node, pugi::xml_node xml_node)
                                node->set(socket, (int)atoi(attr.value()));
                                break;
                        }
+                       case SocketType::UINT:
+                       {
+                               node->set(socket, (uint)atoi(attr.value()));
+                               break;
+                       }
                        case SocketType::INT_ARRAY:
                        {
                                vector<string> tokens;
@@ -310,6 +315,11 @@ pugi::xml_node xml_write_node(Node *node, pugi::xml_node xml_root)
                                attr = node->get_int(socket);
                                break;
                        }
+                       case SocketType::UINT:
+                       {
+                               attr = node->get_uint(socket);
+                               break;
+                       }
                        case SocketType::INT_ARRAY:
                        {
                                std::stringstream ss;