AssetContainer.dispose throws TypeError: r.metadata is null

PR: More fix for glTF loader skinning code by bghgary · Pull Request #12538 · BabylonJS/Babylon.js (github.com)

Turns out that copy of metadata is not right to begin with. The gltf.pointer metadata will also be lost. I changed it to remove the copy. We now have a link to the other mesh, so other metadata from loader extensions can be retrieved from there.

2 Likes