Update utglTF2ImportExport.cpp

Check scene pointer against nullptr.
pull/2175/head
Kim Kulling 2018-10-08 14:53:33 +02:00 committed by GitHub
parent 871e1524e4
commit e1247e81e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -371,6 +371,7 @@ TEST_F(utglTF2ImportExport, importglTF2FromMemory) {
aiProcess_FindDegenerates | aiProcess_GenUVCoords | aiProcess_SortByPType;
const auto& buff = ReadFile("C:\\Users\\kimkulling\\Downloads\\camel\\camel\\scene.gltf");
const aiScene* Scene = ::aiImportFileFromMemory(&buff[0], buff.size(), flags, ".gltf");
EXPECT_NE( nullptr, Scene );
}
#ifndef ASSIMP_BUILD_NO_EXPORT