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