Open The0Dev opened 5 days ago
Confirmed.
We currently have a check that avoid to bake the scene if there is no animation in it. Here: https://github.com/KhronosGroup/glTF-Blender-IO/blob/0b885358ab6a0fe7fe1a089affe568fe377ca745/addons/io_scene_gltf2/blender/exp/animation/scene_animation.py#L30
This check is a little too strict, as drivers are not detected, so we skip the entire scene bake.
Describe the bug Animations driven by drivers are not baked in the Scene animation mode unless at least one keyframe is set on any object.
To Reproduce Steps to reproduce the behavior:
Expected behavior Animations should be baked and exported correctly, even if no keyframes were set.
Screenshots
.blend file/ .gltf (mandatory) material_texture_anim.zip
Additional context
In this case, I think drivers should be baked even if nothing was animated with regular keyframes.
Version