Another strange thing happened. In that playground, the export does not work but when I remove lines from 43 to 50, the exporter works, but the file is still corrupted
I dont know the right term for it but if you see the exported file, some faces of the mesh disappearsed.
But now it seems that the PG is working fine. The issue is fixed. Thank you
Hey everyone, sorry to revive an old thread, but I think there is a small bug with the PR that was merged due to this issue.
We import/export models frequently in our application, and what appears to be happening is that when you import a gltf/glb model, it will get the __root__ node applied (as shown here). Now in Babylon 5, due to root being a mesh node, it will assign a “default material” to the root node and export the gltf with that material (as shown here). When you open the gltf file, it will now have a “default material” material that is unused. We updated to Babylon 5 recently and started encountering this, which was working previously in Babylon 4.
@bghgary Hey! Sorry about that. It appears to be an edge case. One imported mesh needs to be parented underneath another imported mesh for the behavior to appear.