FBX IO: Speed up animation simplification using NumPy #104904
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user