FBX IO: Speed up export by multithreading array compression #105018
@ -3,10 +3,9 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from . import data_types, fbx_utils
|
from . import data_types
|
||||||
except:
|
except:
|
||||||
import data_types
|
import data_types
|
||||||
import fbx_utils
|
|
||||||
|
|
||||||
from struct import pack
|
from struct import pack
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
@ -65,6 +64,9 @@ class FBXElem:
|
|||||||
|
|
||||||
Writing to a file is temporarily disabled as a safeguard."""
|
Writing to a file is temporarily disabled as a safeguard."""
|
||||||
# __enter__()
|
# __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_func = cls._add_compressed_array_helper
|
||||||
orig_write = cls._write
|
orig_write = cls._write
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user