[assbin] Fail if file could not be opened

Fail instead of returning empty scene.

Partially addresses #3888.
pull/3890/head
Jason C 2021-05-05 17:46:24 -04:00
parent 0d3e8b52be
commit 470913bf27
1 changed files with 1 additions and 1 deletions

View File

@ -671,7 +671,7 @@ void AssbinImporter::ReadBinaryScene(IOStream *stream, aiScene *scene) {
void AssbinImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSystem *pIOHandler) {
IOStream *stream = pIOHandler->Open(pFile, "rb");
if (nullptr == stream) {
return;
throw DeadlyImportError("ASSBIN: Could not open ", pFile);
}
// signature