Update Q3DLoader.cpp
parent
2d994e1a28
commit
eeae6eac26
|
@ -131,7 +131,7 @@ void Q3DImporter::InternReadFile(const std::string &pFile,
|
||||||
std::vector<Material> materials;
|
std::vector<Material> materials;
|
||||||
try {
|
try {
|
||||||
materials.reserve(numMats);
|
materials.reserve(numMats);
|
||||||
} catch(const std::bad_alloc& e) {
|
} catch(const std::bad_alloc&) {
|
||||||
ASSIMP_LOG_ERROR("Invalid alloc for materials.");
|
ASSIMP_LOG_ERROR("Invalid alloc for materials.");
|
||||||
throw DeadlyImportError("Invalid Quick3D-file, material allocation failed.");
|
throw DeadlyImportError("Invalid Quick3D-file, material allocation failed.");
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ void Q3DImporter::InternReadFile(const std::string &pFile,
|
||||||
std::vector<Mesh> meshes;
|
std::vector<Mesh> meshes;
|
||||||
try {
|
try {
|
||||||
meshes.reserve(numMeshes);
|
meshes.reserve(numMeshes);
|
||||||
} catch(const std::bad_alloc& e) {
|
} catch(const std::bad_alloc&) {
|
||||||
ASSIMP_LOG_ERROR("Invalid alloc for meshes.");
|
ASSIMP_LOG_ERROR("Invalid alloc for meshes.");
|
||||||
throw DeadlyImportError("Invalid Quick3D-file, mesh allocation failed.");
|
throw DeadlyImportError("Invalid Quick3D-file, mesh allocation failed.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue