From dc1e11c8be8e0d389d2171634287112f5d89a20c Mon Sep 17 00:00:00 2001 From: Angelo Scandaliato Date: Tue, 11 Oct 2016 15:33:52 -0700 Subject: [PATCH] added some comments --- code/glTFExporter.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/glTFExporter.cpp b/code/glTFExporter.cpp index b474b47..5f53c4e 100644 --- a/code/glTFExporter.cpp +++ b/code/glTFExporter.cpp @@ -713,7 +713,10 @@ void glTFExporter::ExportMeshes() }// for (unsigned int i = 0; i < mScene->mNumMeshes; ++i) } - +/* + * Export the root node of the node hierarchy. + * Calls ExportNode for all children. + */ unsigned int glTFExporter::ExportNodeHierarchy(const aiNode* n) { Ref node = mAsset->nodes.Create(mAsset->FindUniqueID(n->mName.C_Str(), "node")); @@ -735,7 +738,10 @@ unsigned int glTFExporter::ExportNodeHierarchy(const aiNode* n) return node.GetIndex(); } - +/* + * Export node and recursively calls ExportNode for all children. + * Since these nodes are not the root node, we also export the parent Ref + */ unsigned int glTFExporter::ExportNode(const aiNode* n, Ref& parent) { Ref node = mAsset->nodes.Create(mAsset->FindUniqueID(n->mName.C_Str(), "node")); -- 2.7.4