Bug?: Morph targets get lost when entity is destroyed

Hmm, I think I found the difference.
I tried to reload the asset that was referenced by the render component, since I thought I can easily access it this way. But you are actually reloading the .glb container asset. And those two are not the same asset.

I will look for a reference to the .glb asset since I don’t want to manually link them, but if I don’t I now still know how to fix this for now.
Thanks

Private API, but you can get the containerAsset via asset.data.containerAsset.

Note that multiple render assets can reference the same container asset

1 Like

There’s a PR in progress for this issue: https://github.com/playcanvas/engine/pull/3874

Likely to come out with engine 1.52.X

1 Like