Update code to be compatible with OIIO 2.0
There are some changes in API of OpenImageIO, but those are quite simple to keep working with older and newer library versions. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D4064
This commit is contained in:
@@ -250,7 +250,7 @@ void xml_read_node(XMLReader& reader, Node *node, xml_node xml_node)
|
||||
}
|
||||
}
|
||||
|
||||
if(node->name)
|
||||
if(!node->name.empty())
|
||||
reader.node_map[node->name] = node;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user