GLTF Export BUG: Faulty export if skeleton.bones.length = 0

Blender and other programs cannot import a GLTF from BJS if the scene has a skeleton with bones.length == 0

@Drigax

Pinging @bghgary

@Guillaume_Pelletier Can you investigate? Thanks.

1 Like

Actually, there is no guard into the code, testing for an empty skin.
@mrlooi could you send me a short repro on playground ?
G.

2 Likes

Here’s a PG https://playground.babylonjs.com/#SYQW69#1057

Then use the inspector thing to export GLB, then import into blender

Error
image

I made a PR to ensure we still have a valid GLTF even when length is Zero or corrupted.

4 Likes