瀏覽代碼

Close stream when finished

Joshua Hyatt 5 年之前
父節點
當前提交
953e976de6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      code/AssetLib/FBX/FBXImporter.cpp

+ 2 - 0
code/AssetLib/FBX/FBXImporter.cpp

@@ -159,6 +159,8 @@ void FBXImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSy
 	contents[contents.size() - 1] = 0;
 	const char *const begin = &*contents.begin();
 
+	pIOHandler->Close(stream);
+
 	// broadphase tokenizing pass in which we identify the core
 	// syntax elements of FBX (brackets, commas, key:value mappings)
 	TokenList tokens;