Even stranger (sorry for replying to you again but I feel like this might help with a bug report), I copied the rig from the original file into a new Blender 3.3 Alpha project, and now it sometimes exports with the objects still at wrong locations and other times I get an error when trying to export. (I should add that I got the same error for the same file in previous blender versions (3.0) before)
Then another time when I exported it without pushing to NLA tracks first, it exported correctly, but with only one animation. At this point I’m clueless as to what is happening so I attached the test file to this reply in case you (or someone else) can find out more.
Reproduction Project:
(I can’t add attachments so I uploaded it to filebin instead)
https://filebin.net/fi0satzcnhb224wp/BugReproduction.blend
Error message:
Python: Traceback (most recent call last):
File "D:\Programme\Blender\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\__init__.py", line 637, in execute
return gltf2_blender_export.save(context, export_settings)
File "D:\Programme\Blender\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 46, in save
json, buffer = __export(export_settings)
File "D:\Programme\Blender\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 63, in __export
__gather_gltf(exporter, export_settings)
File "D:\Programme\Blender\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 77, in __gather_gltf
active_scene_idx, scenes, animations = gltf2_blender_gather.gather_gltf2(export_settings)
File "D:\Programme\Blender\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather.py", line 39, in gather_gltf2
animations += __gather_animations(blender_scene, export_settings)
File "D:\Programme\Blender\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather.py", line 83, in __gather_animations
animations_, merged_tracks = gltf2_blender_gather_animations.gather_animations(_blender_object, merged_tracks, len(animations), export_settings)
File "D:\Programme\Blender\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_animations.py", line 76, in gather_animations
animation = __gather_animation(blender_action, blender_object, export_settings)
File "D:\Programme\Blender\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_animations.py", line 114, in __gather_animation
channels=__gather_channels(blender_action, blender_object, export_settings),
File "D:\Programme\Blender\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_animations.py", line 149, in __gather_channels
return gltf2_blender_gather_animation_channels.gather_animation_channels(
File "D:\Programme\Blender\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 65, in wrapper_cached
result = func(*args)
File "D:\Programme\Blender\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_animation_channels.py", line 43, in gather_animation_channels
groups = __get_channel_groups(blender_action, blender_object, export_settings)
File "D:\Programme\Blender\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_animation_channels.py", line 367, in __get_channel_groups
if rotation and target.rotation_mode not in rotation_modes:
AttributeError: 'Pose' object has no attribute 'rotation_mode'
location: <unknown location>:-1