Merge branch 'master' into fix-fbx-metalness-import
This commit is contained in:
@@ -537,6 +537,11 @@ void LWSImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSy
|
||||
|
||||
// get file format version and print to log
|
||||
++it;
|
||||
|
||||
if ((*it).tokens[0].empty()) {
|
||||
ASSIMP_LOG_ERROR("Invalid LWS file detectedm abort import.");
|
||||
return;
|
||||
}
|
||||
unsigned int version = strtoul10((*it).tokens[0].c_str());
|
||||
ASSIMP_LOG_INFO("LWS file format version is ", (*it).tokens[0]);
|
||||
first = 0.;
|
||||
|
||||
@@ -463,8 +463,12 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
|
||||
ASSIMP_LOG_WARN("Found a reference to an embedded DDS texture, "
|
||||
"but texture height is not equal to 1, which is not supported by MED");
|
||||
}
|
||||
|
||||
pcNew.reset(new aiTexture());
|
||||
if (iWidth == 0) {
|
||||
ASSIMP_LOG_ERROR("Found a reference to an embedded DDS texture, but texture width is zero, aborting import.");
|
||||
return;
|
||||
}
|
||||
|
||||
pcNew.reset(new aiTexture);
|
||||
pcNew->mHeight = 0;
|
||||
pcNew->mWidth = iWidth;
|
||||
|
||||
|
||||
@@ -480,6 +480,6 @@ void X3DImporter::ParseHelper_Node_Exit() {
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ASSIMP_BUILD_NO_X3D_IMPORTER
|
||||
|
||||
} // namespace Assimp
|
||||
|
||||
#endif // !ASSIMP_BUILD_NO_X3D_IMPORTER
|
||||
|
||||
Reference in New Issue
Block a user