Fix #104875: Animated dupli instances export frozen in place #104876

Merged
Thomas Barlow merged 4 commits from Mysteryem/blender-addons:fbx_export_anim_instances_104875 into main 2023-09-11 17:29:15 +02:00
Member

Animated dupli instances would appear frozen in place in exported
animations because their worldspace matrices were not being updated for
each exported frame of animation.

It seems to have been a mistake in 2bfab056d2 that caused the matrices
to not be updated.

This patch fixes the worldspace matrices of dupli instances such that
they now update for each exported frame of animation as intended.

Animated dupli instances would appear frozen in place in exported animations because their worldspace matrices were not being updated for each exported frame of animation. It seems to have been a mistake in 2bfab056d2 that caused the matrices to not be updated. This patch fixes the worldspace matrices of dupli instances such that they now update for each exported frame of animation as intended.
Thomas Barlow added 2 commits 2023-09-08 01:33:19 +02:00
6325f33dd9 Fix #104875: Animated object instances export frozen in place
It seems to have been a mistake in 2bfab056d2 that prevented the matrices of dupli instances being updated while iterating through each frame.
b76c9ec89f Simpler, more robust set comprehension
Will work even if scene_data.objects contains duplis without their
parent object
Thomas Barlow requested review from Bastien Montagne 2023-09-08 01:34:20 +02:00
Author
Member

I'm not very familiar with using instances nor the Python API for interacting with them, but this seems correct to me.

I hadn't even considered collection instancing, but that also seems to work with animation now (the collection Object is considered the parent of each of its instanced Objects).

I'm not very familiar with using instances nor the Python API for interacting with them, but this seems correct to me. I hadn't even considered collection instancing, but that also seems to work with animation now (the collection Object is considered the parent of each of its instanced Objects).
Bastien Montagne approved these changes 2023-09-11 12:59:28 +02:00
Bastien Montagne left a comment
Owner

LGTM

LGTM
Thomas Barlow added 2 commits 2023-09-11 17:22:57 +02:00
Thomas Barlow merged commit 6b576d5282 into main 2023-09-11 17:29:15 +02:00
Thomas Barlow deleted branch fbx_export_anim_instances_104875 2023-09-11 17:29:17 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#104876
No description provided.