Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2414 - always bake scene animations #2415

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@

def gather_scene_animations(export_settings):

# if there is no animation in file => no need to bake. Except if we are trying to bake GN instances
if len(bpy.data.actions) == 0 and export_settings['gltf_gn_mesh'] is False:
# TODO : get a better filter by checking we really have some GN instances...
return []
# Even if we don't have any animation,
# We are going to bake.
# Here are some cases where there are no action in bpy.data.actions, but we still have to bake:
# - GN instances, that can be animated
# - Everything that can be animated by drivers (animation pointer, but not only)

total_channels = []
animations = []
Expand Down
Loading