diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-02-03 11:02:00 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-02-07 14:18:15 +0300 |
commit | ad489b71646a2e03e2ce9b0d193d541e3987b4cd (patch) | |
tree | 90c267c776585606c65156253ec3ce5b96101588 /intern/cycles/graph/node_xml.cpp | |
parent | b1f1a1ca6035e23d66656c97c16fe081caafcae8 (diff) |
Cleanup: add type inheritance for Cycles nodes
Diffstat (limited to 'intern/cycles/graph/node_xml.cpp')
-rw-r--r-- | intern/cycles/graph/node_xml.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/graph/node_xml.cpp b/intern/cycles/graph/node_xml.cpp index a96970cc904..d333400cc4a 100644 --- a/intern/cycles/graph/node_xml.cpp +++ b/intern/cycles/graph/node_xml.cpp @@ -200,7 +200,7 @@ void xml_read_node(XMLReader &reader, Node *node, xml_node xml_node) map<ustring, Node *>::iterator it = reader.node_map.find(value); if (it != reader.node_map.end()) { Node *value_node = it->second; - if (value_node->type == *(socket.node_type)) + if (value_node->is_a(*(socket.node_type))) node->set(socket, it->second); } break; @@ -215,7 +215,7 @@ void xml_read_node(XMLReader &reader, Node *node, xml_node xml_node) map<ustring, Node *>::iterator it = reader.node_map.find(ustring(tokens[i])); if (it != reader.node_map.end()) { Node *value_node = it->second; - value[i] = (value_node->type == *(socket.node_type)) ? value_node : NULL; + value[i] = (value_node->is_a(*(socket.node_type))) ? value_node : NULL; } else { value[i] = NULL; |