Port mesh loading to pugixml. Untested.

This commit is contained in:
PencilAmazing
2023-07-02 14:32:12 -04:00
parent 3e1fd74940
commit 19da9cc84d
3 changed files with 347 additions and 317 deletions
+1 -2
View File
@@ -66,8 +66,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <csignal>
#include <iostream>
#include <memory>
#include <queue>
#include <stack>
using namespace Assimp;
@@ -1254,6 +1252,7 @@ void IRRImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSy
// Parse the XML
// First node is the xml header. Awkwardly skip to sibling's children
// I don't like recursion
// TODO clean up
std::vector<pugi::xml_node> nextNodes;
for (auto &node : rootElement.children().begin()->next_sibling().children()) {
nextNodes.push_back(node); // Find second node, <irr_scene>, and push it's children to queue