Browse Source

fix build

David Catuhe 6 năm trước cách đây
mục cha
commit
206f38bb70

+ 1 - 1
serializers/src/glTF/2.0/glTFExporter.ts

@@ -1321,7 +1321,7 @@ export class _Exporter {
         let idleGLTFAnimations: IAnimation[] = [];
         let idleGLTFAnimations: IAnimation[] = [];
 
 
         for (let babylonNode of nodes) {
         for (let babylonNode of nodes) {
-            if (this._options.shouldExportNode && this._options.shouldExportNode(babylonNode)) {
+            if (!this._options.shouldExportNode || this._options.shouldExportNode(babylonNode)) {
                 promiseChain = promiseChain.then(() => {
                 promiseChain = promiseChain.then(() => {
                     return this.createNodeAsync(babylonNode, binaryWriter).then((node) => {
                     return this.createNodeAsync(babylonNode, binaryWriter).then((node) => {
                         const promise = this._extensionsPostExportNodeAsync("createNodeAsync", node, babylonNode);
                         const promise = this._extensionsPostExportNodeAsync("createNodeAsync", node, babylonNode);