Explorar o código

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

[glTF2] Preserve node names when importing
Kim Kulling %!s(int64=7) %!d(string=hai) anos
pai
achega
3e9bb23688
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/glTF2Importer.cpp

+ 1 - 1
code/glTF2Importer.cpp

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