Fix up scene loading. pugixml is a breadth-first parser while irrxml is

a depth first. This only parses scene structure, no mesh loading yet.
This commit is contained in:
dog
2023-06-26 15:15:30 -04:00
committed by PencilAmazing
parent 537b445a59
commit 3e1fd74940
6 changed files with 467 additions and 422 deletions

View File

@@ -176,7 +176,7 @@ void IRRMeshImporter::InternReadFile(const std::string &pFile,
ASSIMP_LOG_WARN("IRRMESH: Only one material description per buffer, please");
releaseMaterial(&curMat);
}
curMat = ParseMaterial(curMatFlags);
// curMat = ParseMaterial(curMatFlags);
}
/* no else here! */ if (!ASSIMP_stricmp(child.name(), "vertices")) {
pugi::xml_attribute attr = child.attribute("vertexCount");
@@ -495,4 +495,8 @@ void IRRMeshImporter::InternReadFile(const std::string &pFile,
}
}
void IRRMeshImporter::ParseMaterialBuffer(pugi::xml_node& bufferNode) {
}
#endif // !! ASSIMP_BUILD_NO_IRRMESH_IMPORTER