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:
parent
5c17286e98
commit
3412a85a14
@ -11,6 +11,7 @@ import typing
|
|||||||
|
|
||||||
from .. import wheels
|
from .. import wheels
|
||||||
|
|
||||||
|
blendfile = wheels.load_wheel("blender_asset_tracer.blendfile")
|
||||||
pack = wheels.load_wheel("blender_asset_tracer.pack")
|
pack = wheels.load_wheel("blender_asset_tracer.pack")
|
||||||
progress = wheels.load_wheel("blender_asset_tracer.pack.progress")
|
progress = wheels.load_wheel("blender_asset_tracer.pack.progress")
|
||||||
transfer = wheels.load_wheel("blender_asset_tracer.pack.transfer")
|
transfer = wheels.load_wheel("blender_asset_tracer.pack.transfer")
|
||||||
@ -210,6 +211,11 @@ def copy( # type: ignore
|
|||||||
if _running_packthread is not None:
|
if _running_packthread is not None:
|
||||||
raise RuntimeError("other packing operation already in progress")
|
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:
|
if packer_kwargs is None:
|
||||||
packer_kwargs = {}
|
packer_kwargs = {}
|
||||||
packer = packer_class(
|
packer = packer_class(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user