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.");