Control Strict Pointer Mode from the CLI, defaulting to OFF
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 when using BAT from the CLI. Blender Cloud add-on will also get a similar update, so that there also the Strict Pointer Mode is disabled.
This commit is contained in:
@@ -839,3 +839,17 @@ class BlendFileBlock:
|
||||
"""Generator, yields (property path, property value) recursively for all properties."""
|
||||
for k in self.keys():
|
||||
yield from self.get_recursive_iter(k, as_str=False)
|
||||
|
||||
|
||||
def set_strict_pointer_mode(strict_pointers: bool) -> None:
|
||||
"""Control behaviour when a pointer to unknown memory is dereferenced.
|
||||
|
||||
Strict pointer mode raise exceptions.SegmentationFault when dereferencing an
|
||||
unknown pointer. This is the default.
|
||||
|
||||
Set to False to disable this exception, and to return None instead, i.e. to
|
||||
ignore such pointers. Note that this can cause None to be returned from a
|
||||
non-nil pointer.
|
||||
"""
|
||||
|
||||
BlendFile.strict_pointer_mode = strict_pointers
|
||||
|
||||
Reference in New Issue
Block a user