Change behavior of cycles xml to conform the spec: "Each XML document has exactly one single root element"

This commit is contained in:
Martijn Berger
2015-05-17 23:41:38 +02:00
parent 0b5bf9d419
commit 3ed009af96

View File

@@ -1199,7 +1199,8 @@ static void xml_read_include(const XMLReadState& state, const string& src)
XMLReadState substate = state;
substate.base = path_dirname(path);
xml_read_scene(substate, doc);
pugi::xml_node cycles = doc.child("cycles");
xml_read_scene(substate, cycles);
}
else {
fprintf(stderr, "%s read error: %s\n", src.c_str(), parse_result.description());