mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
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
27 lines
882 B
Python
27 lines
882 B
Python
"""
|
|
Assigning to Existing Classes
|
|
+++++++++++++++++++++++++++++
|
|
|
|
Custom properties can be added to any subclass of an :class:`ID`,
|
|
:class:`Bone` and :class:`PoseBone`.
|
|
|
|
These properties can be animated, accessed by the user interface and Python
|
|
like Blender's existing properties.
|
|
|
|
.. warning::
|
|
|
|
Access to these properties might happen in threaded context, on a per-data-block level.
|
|
This has to be carefully considered when using accessors or update callbacks.
|
|
|
|
Typically, these callbacks should not affect any other data that the one owned by their data-block.
|
|
When accessing external non-Blender data, thread safety mechanisms should be considered.
|
|
|
|
"""
|
|
|
|
import bpy
|
|
|
|
# Assign a custom property to an existing type.
|
|
bpy.types.Material.custom_float = bpy.props.FloatProperty(name="Test Property")
|
|
|
|
# Test the property is there.
|
|
bpy.data.materials[0].custom_float = 5.0
|