|
@@ -120,15 +120,15 @@ void IRRMeshImporter::InternReadFile(const std::string &pFile,
|
|
std::unique_ptr<IOStream> file(pIOHandler->Open(pFile));
|
|
std::unique_ptr<IOStream> file(pIOHandler->Open(pFile));
|
|
|
|
|
|
// Check whether we can read from the file
|
|
// Check whether we can read from the file
|
|
- if (file == nullptr)
|
|
|
|
- throw DeadlyImportError("Failed to open IRRMESH file ", pFile);
|
|
|
|
|
|
+ if (file == nullptr)
|
|
|
|
+ throw DeadlyImportError("Failed to open IRRMESH file ", pFile);
|
|
|
|
|
|
// Construct the irrXML parser
|
|
// Construct the irrXML parser
|
|
XmlParser parser;
|
|
XmlParser parser;
|
|
- if (!parser.parse( file.get() )) {
|
|
|
|
- throw DeadlyImportError("XML parse error while loading IRRMESH file ", pFile);
|
|
|
|
- }
|
|
|
|
- XmlNode root = parser.getRootNode();
|
|
|
|
|
|
+ if (!parser.parse( file.get() )) {
|
|
|
|
+ throw DeadlyImportError("XML parse error while loading IRRMESH file ", pFile);
|
|
|
|
+ }
|
|
|
|
+ XmlNode root = parser.getRootNode();
|
|
|
|
|
|
// final data
|
|
// final data
|
|
std::vector<aiMaterial *> materials;
|
|
std::vector<aiMaterial *> materials;
|