GLTF2Export randomly missing textures when exporting cloned scene

I am exporting a Babylon.js scene using GLTF2Export.

The issue is that textures in the “images” section of the exported glTF are randomly missing.
Each export produces different missing textures.

Still, the problem persists.

public async createGltf(filename: string, scene?: BABYLON.Scene): Promise {

    return GLTF2Export.GLTFAsync(this.scene, filename, {

        shouldExportNode: (node) => node.isEnabled()

    });

}

cc @alexchuber

Welcome to the forum!

Could you provide a minimal Playground repro? That’ll help us diagnose and fix this much faster.

What happens if you do this instead (w/o predicate):

public async createGltf(filename: string, scene?: BABYLON.Scene): Promise {

    return GLTF2Export.GLTFAsync(this.scene, filename);

}