Add-on: disable BAT's strict pointer mode

Due to issues with library overrides and unsynced pointers, it's quite
common for the Blender Animation Studio to get "address unknown" errors
from BAT. To avoid these, Strict Pointer Mode is disabled.
This commit is contained in:
Sybren A. Stüvel 2022-07-11 17:56:47 +02:00
parent 5c17286e98
commit 3412a85a14

View File

@ -11,6 +11,7 @@ import typing
from .. import wheels
blendfile = wheels.load_wheel("blender_asset_tracer.blendfile")
pack = wheels.load_wheel("blender_asset_tracer.pack")
progress = wheels.load_wheel("blender_asset_tracer.pack.progress")
transfer = wheels.load_wheel("blender_asset_tracer.pack.transfer")
@ -210,6 +211,11 @@ def copy( # type: ignore
if _running_packthread is not None:
raise RuntimeError("other packing operation already in progress")
# Due to issues with library overrides and unsynced pointers, it's quite
# common for the Blender Animation Studio to get crashes of BAT. To avoid
# these, Strict Pointer Mode is disabled.
blendfile.set_strict_pointer_mode(False)
if packer_kwargs is None:
packer_kwargs = {}
packer = packer_class(