UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

Importing animated models from Blender where skeleton = 0 crashes

Open enaraartetxe opened this issue 8 years ago • 4 comments

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

enaraartetxe avatar Jul 11 '18 08:07 enaraartetxe

I have same problem too.

Yonerida0923 avatar Jul 30 '18 09:07 Yonerida0923

This issue still isn't fixed.

skinned mesh gltf bug.zip

SubtleMetaphor avatar Nov 09 '18 23:11 SubtleMetaphor

I just tested this again because I put in a fix for a similar issue. Unfortunately, now it has an infinite recursion bug.

AdamMitchell-ms avatar May 23 '19 22:05 AdamMitchell-ms

Fixed in latest release

robertdorn83 avatar Feb 09 '24 08:02 robertdorn83