From 0b04ae1d91a561aa2bf6c40edf8f490b45b7b7fd Mon Sep 17 00:00:00 2001 From: awefers Date: Mon, 27 Nov 2017 11:56:58 -0500 Subject: [PATCH] Preserve node names when importing glTF2.0 Closes #1522 --- code/glTF2Importer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/glTF2Importer.cpp b/code/glTF2Importer.cpp index 297f2bc72..ffc51ef0e 100644 --- a/code/glTF2Importer.cpp +++ b/code/glTF2Importer.cpp @@ -492,7 +492,7 @@ aiNode* ImportNode(aiScene* pScene, glTF2::Asset& r, std::vector& { 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());