David Catuhe 6 년 전
부모
커밋
f8065b23a4
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      serializers/src/glTF/2.0/glTFExporter.ts

+ 5 - 0
serializers/src/glTF/2.0/glTFExporter.ts

@@ -1259,6 +1259,11 @@ export class _Exporter {
                     glTFNodeIndex = this._nodeMap[babylonNode.uniqueId];
                     if (glTFNodeIndex !== undefined) {
                         glTFNode = this._nodes[glTFNodeIndex];
+
+                        if (babylonNode.metadata) {
+                            glTFNode.extras = babylonNode.metadata;
+                        }
+
                         if (!babylonNode.parent) {
                             if (!this._shouldExportNode(babylonNode)) {
                                 Tools.Log("Omitting " + babylonNode.name + " from scene.");