Added mName to aiScene. Primarily to provide access to the "name" member of glTF2 scenes.

This commit is contained in:
Evangel
2020-11-22 15:33:31 +10:00
parent b1f3c48551
commit 67abcb10ba
4 changed files with 12 additions and 2 deletions
+1
View File
@@ -1386,6 +1386,7 @@ void glTF2Importer::InternReadFile(const std::string &pFile, aiScene *pScene, IO
// read the asset file
glTF2::Asset asset(pIOHandler);
asset.Load(pFile, GetExtension(pFile) == "glb");
pScene->mName = asset.scene->name;
//
// Copy the data out