Merge pull request #1595 from Matter-and-Form/fix/gltf2-preserve-node-names
[glTF2] Preserve node names when importingpull/1594/head^2
commit
3e9bb23688
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue