blendergltf icon indicating copy to clipboard operation
blendergltf copied to clipboard

Armatures with no root bone do not export well

Open mwmwmw opened this issue 7 years ago • 5 comments

Whenever I try to export a mesh with an armature, I get this error message. image

Index list assignment out of range. Not sure what it's looking for.

If I delete the armature, it exports fine. I'm sure it's a problem with my armature but I have no idea what. I have another model with a similar setup that also fails to export.

Here is the model I am using. BlairRigged.zip

The Khronos GLTF exporter exports this no problem. I'm hoping to use this one because of the multiple animation export feature.

Any ideas?

mwmwmw avatar Jan 10 '18 21:01 mwmwmw

Which version are you using? 1.1 release or master? There have been a lot of animation fixes since 1.1.

Moguri avatar Jan 11 '18 03:01 Moguri

This bug happens with master. Looking into it.

Kupoman avatar Jan 11 '18 04:01 Kupoman

I fixed the crash, but there are still some other issues that need to be fixed. It looks like armatures without a single root bone have some problems that need to be fixed. I'll try to get multiple root bones fixed up some more this weekend, but for now you can try giving all of the bones in the armature a common parent.

Kupoman avatar Jan 11 '18 05:01 Kupoman

@Moguri Yes, I was running it in master.

@Kupoman that's an easy workaround. I'll make sure everything has a root bone. Probably makes sense to do it that way. I'll give the fix a shot sometime tomorrow.

Thanks! I figured it was some little thing.

mwmwmw avatar Jan 11 '18 05:01 mwmwmw

Bumping the handling of multiple root bones to a future release.

Kupoman avatar Mar 03 '18 19:03 Kupoman