Merge pull request #1595 from Matter-and-Form/fix/gltf2-preserve-node-names

[glTF2] Preserve node names when importing
pull/1594/head^2
Kim Kulling 2017-11-28 08:47:49 +01:00 committed by GitHub
commit 3e9bb23688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ aiNode* ImportNode(aiScene* pScene, glTF2::Asset& r, std::vector<unsigned int>&
{ {
Node& node = *ptr; Node& node = *ptr;
aiNode* ainode = new aiNode(node.id); aiNode* ainode = new aiNode(node.name);
if (!node.children.empty()) { if (!node.children.empty()) {
ainode->mNumChildren = unsigned(node.children.size()); ainode->mNumChildren = unsigned(node.children.size());