FBX IO: Speed up export by multithreading array compression #105018

Merged
Thomas Barlow merged 6 commits from Mysteryem/blender-addons:fbx_multithread_array_compression_pr into main 2024-01-12 21:39:20 +01:00
Showing only changes of commit 5aa031177f - Show all commits

View File

@ -3,10 +3,9 @@
# SPDX-License-Identifier: GPL-2.0-or-later
try:
from . import data_types, fbx_utils
from . import data_types
except:
import data_types
import fbx_utils
from struct import pack
from contextlib import contextmanager
@ -65,6 +64,9 @@ class FBXElem:
Writing to a file is temporarily disabled as a safeguard."""
# __enter__()
# Can't import fbx_utils at the top of this file because json2fbx.py imports this file, but json2fbx.py can't
# import fbx_utils due to fbx_utils importing bpy.
from . import fbx_utils
orig_func = cls._add_compressed_array_helper
orig_write = cls._write