FBX IO: Speed up animation simplification using NumPy #104904

Merged
Thomas Barlow merged 17 commits from Mysteryem/blender-addons:fbx_anim_export_numpy_simplify into blender-v4.0-release 2023-10-06 17:53:02 +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)