Kupoman / blendergltf

A glTF exporter for Blender
Apache License 2.0
319 stars 49 forks source link

Armatures with no root bone do not export well #121

Open mwmwmw opened 6 years ago

mwmwmw commented 6 years ago

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?

Moguri commented 6 years ago

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

Kupoman commented 6 years ago

This bug happens with master. Looking into it.

Kupoman commented 6 years ago

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.

mwmwmw commented 6 years ago

@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.

Kupoman commented 6 years ago

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