Preserve node names when importing glTF2.0

Closes #1522
pull/1595/head
awefers 2017-11-27 11:56:58 -05:00 committed by Daniel Hritzkiv
parent 0ce3641deb
commit 0b04ae1d91
No known key found for this signature in database
GPG Key ID: D1D19875679D5CBF
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,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());