Reproduce issue and remove assertion when a nullptr makes more sence

This commit is contained in:
Kim Kulling
2017-10-07 19:08:20 +02:00
parent 2056e56bdb
commit f925e2cf4e
3 changed files with 13 additions and 20 deletions

View File

@@ -89,9 +89,7 @@ AI_WONT_RETURN void ValidateDSProcess::ReportError(const char* msg,...)
ai_assert(iLen > 0);
va_end(args);
#ifdef ASSIMP_BUILD_DEBUG
ai_assert( false );
#endif
throw DeadlyImportError("Validation failed: " + std::string(szBuffer,iLen));
}
// ------------------------------------------------------------------------------------------------