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 3f9b11c9cb - Show all commits

View File

@ -1400,7 +1400,7 @@ class AnimationCurveNodeWrapper:
# are not animated, but are children of animated ones, so added an option to systematically force writing
# one key in this case.
# See T41719, T41605, T41254...
if self.force_keying or (force_keep and not np.any(self._frame_write_mask_array)):
if self.force_keying or (force_keep and not self):
are_keyed = [True] * len(self._frame_write_mask_array)
else:
are_keyed = np.any(self._frame_write_mask_array, axis=1)