FBX IO: Speed up animation export using NumPy #104884

Merged
Thomas Barlow merged 12 commits from Mysteryem/blender-addons:fbx_anim_export_numpy_intermediate into main 2023-09-19 01:13:25 +02:00
Showing only changes of commit 67b97a59a4 - Show all commits

View File

@ -2275,7 +2275,7 @@ def fbx_animations_do(scene_data, ref_id, f_start, f_end, start_zero, objects=No
# Iterate through each frame and yield the values for that frame. # Iterate through each frame and yield the values for that frame.
# Iterating .data, the memoryview of an array, is faster than iterating the array directly. # Iterating .data, the memoryview of an array, is faster than iterating the array directly.
for real_currframe, int_currframe, subframe in zip(real_currframes.data, int_currframes.data, subframes.data): for int_currframe, subframe in zip(int_currframes.data, subframes.data):
scene.frame_set(int_currframe, subframe=subframe) scene.frame_set(int_currframe, subframe=subframe)
if has_animated_duplis: if has_animated_duplis: