Importing animated models from Blender where skeleton = 0 crashes
Hi, I have animated an .obj in mixamo, downloaded as collada and exported to Gltf using Blender's exporter. The problem is that in GLTFSceneImporter the SetupBones method crashes on
renderer.rootBone = _assetCache.NodeCache[skin.Skeleton.Id].transform; because the node that's trying to access is null. Looking at the Gltf file, Blender exports the skeleton as 0.
I've solved it by checking if the skeleton node is null and if so assigning the renderer.rootBone to the sceneObj created in ConstructScene, but not sure if it's the right solution. Can anyone confirm me this, please?
I attach the blend file and the exported gltf files. astronaut.zip
I have same problem too.
I just tested this again because I put in a fix for a similar issue. Unfortunately, now it has an infinite recursion bug.
Fixed in latest release