blender/tests/blender_as_python_module/cleanup_bpy.py
Testfiya a1de44dd54 iOS: Bump version to 5.1.2
This commit bumps the `ios` branch from 5.0.0 alpha to 5.1.2 release.

I merged v5.0-release first then v5.1-release. So it was a sequential
merge.

I'm just waiting to the approval of continuing development.

The stuff that are missing (those are so close to implement):
- #145484 iOS: Keyboard Input Support: https://projects.blender.org/blender/blender/pulls/145484
- #145702 iOS: Add clipboard Image: https://projects.blender.org/blender/blender/pulls/145702
- Fix QOS threading
- Expose Downloads
- UIScene Migration

`make deps` needs to run two times. (still hacky....) OSL occurs racing
conditions.

Disclaimer: I used AI for searching in Documentation of Deps. So the
implementation is by hand. **SACRED PINKY FINGER PROMISE**

Pull Request: https://projects.blender.org/blender/blender/pulls/161073
2026-07-07 16:03:12 +02:00

23 lines
527 B
Python

# SPDX-FileCopyrightText: 2025 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
# Add directory with module to the path.
import sys
sys.path.append(sys.argv[1])
import bpy
def _update_handler(self, context):
pass
def main():
# This used to cause a memory leak and crash due to missing `bpy/__init__.so` cleanup,
# something that CPython doesn't guarantee. See #148959.
bpy.types.Object.custom_property = bpy.props.FloatProperty(update=_update_handler)
if __name__ == "__main__":
main()