Make an assert a DeadlyImportError.

pull/3412/head
Malcolm Tyrrell 2020-10-02 15:25:16 +01:00
parent 57756750f6
commit 585fb89154
1 changed files with 4 additions and 0 deletions

View File

@ -187,6 +187,10 @@ void FBXImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSy
// size relative to cm // size relative to cm
float size_relative_to_cm = doc.GlobalSettings().UnitScaleFactor(); float size_relative_to_cm = doc.GlobalSettings().UnitScaleFactor();
if (size_relative_to_cm == 0.0)
{
ThrowException("The UnitScaleFactor must be non-zero");
}
// Set FBX file scale is relative to CM must be converted to M for // Set FBX file scale is relative to CM must be converted to M for
// assimp universal format (M) // assimp universal format (M)