Added name to nodes

pull/1940/head
Alexis Breust 2018-05-03 11:07:39 +02:00
parent 292e454d86
commit 4aaf7ad547
1 changed files with 3 additions and 1 deletions

View File

@ -891,6 +891,8 @@ unsigned int glTF2Exporter::ExportNodeHierarchy(const aiNode* n)
{
Ref<Node> node = mAsset->nodes.Create(mAsset->FindUniqueID(n->mName.C_Str(), "node"));
node->name = n->mName.C_Str();
if (!n->mTransformation.IsIdentity()) {
node->matrix.isPresent = true;
CopyValue(n->mTransformation, node->matrix.value);