Browse Source

Update utglTF2ImportExport.cpp

Check scene pointer against nullptr.
Kim Kulling 7 years ago
parent
commit
e1247e81e1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      test/unit/utglTF2ImportExport.cpp

+ 1 - 0
test/unit/utglTF2ImportExport.cpp

@@ -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