Collada: fix scenenode parsing.
parent
d0932c405f
commit
14d6141f69
|
@ -163,6 +163,7 @@ std::string ColladaParser::ReadZaeManifest(ZipArchiveIOSystem &zip_archive) {
|
|||
if (!manifestParser.parse(manifestfile.get())) {
|
||||
return std::string();
|
||||
}
|
||||
|
||||
XmlNode root = manifestParser.getRootNode();
|
||||
const std::string &name = root.name();
|
||||
if (name != "dae_root") {
|
||||
|
@ -2036,10 +2037,7 @@ void ColladaParser::ReadSceneNode(XmlNode &node, Node *pNode) {
|
|||
return;
|
||||
}
|
||||
|
||||
XmlNodeIterator xmlIt(node);
|
||||
xmlIt.collectChildrenPreOrder(node);
|
||||
XmlNode currentNode;
|
||||
while (xmlIt.getNext(currentNode)) {
|
||||
for (XmlNode ¤tNode : node.children()) {
|
||||
const std::string ¤tName = currentNode.name();
|
||||
if (currentName == "node") {
|
||||
Node *child = new Node;
|
||||
|
|
Loading…
Reference in New Issue