From 3ed009af96b158d8da1e55f50e6924cc747a6e7a Mon Sep 17 00:00:00 2001 From: Martijn Berger Date: Sun, 17 May 2015 23:41:38 +0200 Subject: Change behavior of cycles xml to conform the spec: "Each XML document has exactly one single root element" --- intern/cycles/app/cycles_xml.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'intern') diff --git a/intern/cycles/app/cycles_xml.cpp b/intern/cycles/app/cycles_xml.cpp index 02cf146c647..53262b93dd0 100644 --- a/intern/cycles/app/cycles_xml.cpp +++ b/intern/cycles/app/cycles_xml.cpp @@ -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()); -- cgit v1.2.3