KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.48k stars 316 forks source link

Armature animation exports incorrectly #322

Closed anim-crash closed 5 years ago

anim-crash commented 5 years ago

Hi, I have a rigged model in Blender with a pair of animations, and I'm using the GLTF exporter to export this scene to a .glb file. Sometimes the exporter has been crashing, although other times it has worked. But now I seem to have reached a state where it's crashing every time I try to export.

The bottom of the call stack reads:

File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_animation_samplers.py". line 115, in __gather_output bone = blender_object.path_resolve(get_target_object_path(target_datapath)) ValueError: Object.path_resolve("") could not be resolved

I downloaded the latest GLTF exporter today, but it shows the same issue.

I've attached the .blend file (which is just a character from a freebie model site with my test anim) and a screenshot of the exporter crash: anim_export_crash.zip

This seems to be a common problem rather than an issue with just this one .blend file, as a different freebie character model I downloaded from some other author also gets the same crashes on animation export too.

Thanks for your help.

anim-crash commented 5 years ago

crash_call_stack

anim-crash commented 5 years ago

Just spotted this duplicate complaint from a month ago:

https://github.com/KhronosGroup/glTF-Blender-IO/issues/234

Apparently animated armatures causes the crash. I don't understand animations enough to know how to work around this. Can someone tell me how to clear this animation in Blender? It would be good to get it fixed, as it seems to be affecting a lot of people, and it's easily reproducable.

donmccurdy commented 5 years ago

@UX3D-becher the crash is fixed (thanks!) but this doesn't seem to be animating correctly yet. Should we leave this open so we have the model to test remaining issues against?

donmccurdy commented 5 years ago

220e2bbd-70fc-4461-a412-a69753ef2887-29851-0000470282e000f9

(bad GIF quality but the issue is clear enough hah)

ghost commented 5 years ago

the crash is fixed (thanks!) but this doesn't seem to be animating correctly yet. Should we leave this open so we have the model to test remaining issues against?

Oh! The other bug report with this issue worked out fine after our fix so we just closed all apparent duplicates. Apparently, there is more work involved! This might just be related to our overall rigged animation issues that will be tackled next month.