Utility/OBJParser: Fix failure to load some OBJ because of their "high error rate"

Former-commit-id: f9041ec52283dc0bdc83869c1d032303a1e200e8 [formerly be218c9edb44bf7e4bd075a60694febaff823c03] [formerly 7f7d145fd94379ba2ad3a853ccb2fe9f7d940397 [formerly 92ee9fda6879f5e85f6106bc30af475cebc3f78f]]
Former-commit-id: 75d958c182fd859499881bde919f57e3baa1db0f [formerly a4d130067033e98e00904ebce6ba5ae372717bd3]
Former-commit-id: a59ed77ae02e7d05de12c4d5d90755c8aef08af0
This commit is contained in:
Lynix 2016-08-09 00:08:31 +02:00
parent 7edbbf2e8c
commit 7fe5710dd3
2 changed files with 2 additions and 1 deletions

View File

@ -179,7 +179,7 @@ namespace Nz
m_errorCount++;
if (m_lineCount > 20 && (m_errorCount * 100 / m_lineCount) > 50)
if (m_errorCount > 10 && (m_errorCount * 100 / m_lineCount) > 50)
{
NazaraError("Aborting parsing because of error percentage");
return false; //< Abort parsing if error percentage is too high

View File

@ -31,6 +31,7 @@ namespace Nz
String matName, meshName;
matName = meshName = "default";
m_errorCount = 0;
m_keepLastLine = false;
m_lineCount = 0;
m_meshes.clear();