|
Blender V5.3
|
Classes | |
| struct | [struct].py_data |
Public Attributes | |
| BPyPropStore * | next |
| BPyPropStore * | prev |
| struct | py_data |
Store #PyObject data for a dynamically defined property. Currently this is only used to store call-back functions. Properties that don't use custom callbacks won't allocate this struct.
This struct adds/removes the user-count of each #PyObject it references, it's needed in case the function is removed from the class (unlikely but possible), also when an annotation evaluates to a lambda with Python 3.10 and newer e.g: #86332.
Pointers to this struct are held in:
g_bpy_prop_store_list (borrows the memory) Having a global list means the users can be visited by the GC and cleared on exit.
This list can't be used for freeing as BPyPropStore doesn't hold a PropertyRNA back-pointer, (while it could be supported it would only complicate things).
All RNA properties are freed after Python has been shut-down. At that point Python user counts can't be touched and must have already been dealt with.
Decrementing users is handled by:
Definition at line 124 of file bpy_props.cc.
| BPyPropStore* blender::BPyPropStore::next |
Definition at line 125 of file bpy_props.cc.
| BPyPropStore * blender::BPyPropStore::prev |
Definition at line 125 of file bpy_props.cc.
| struct blender::BPyPropStore::[struct].py_data blender::BPyPropStore::py_data |
Referenced by blender::bpy_prop_boolean_array_get_fn(), blender::bpy_prop_boolean_array_get_transform_fn(), blender::bpy_prop_boolean_array_set_fn(), blender::bpy_prop_boolean_array_set_transform_fn(), blender::bpy_prop_boolean_get_fn(), blender::bpy_prop_boolean_get_transform_fn(), blender::bpy_prop_boolean_set_fn(), blender::bpy_prop_boolean_set_transform_fn(), blender::bpy_prop_callback_assign_boolean(), blender::bpy_prop_callback_assign_boolean_array(), blender::bpy_prop_callback_assign_enum(), blender::bpy_prop_callback_assign_float(), blender::bpy_prop_callback_assign_float_array(), blender::bpy_prop_callback_assign_int(), blender::bpy_prop_callback_assign_int_array(), blender::bpy_prop_callback_assign_pointer(), blender::bpy_prop_callback_assign_string(), blender::bpy_prop_callback_assign_update(), blender::bpy_prop_enum_get_fn(), blender::bpy_prop_enum_get_transform_fn(), blender::bpy_prop_enum_itemf_fn(), blender::bpy_prop_enum_set_fn(), blender::bpy_prop_enum_set_transform_fn(), blender::bpy_prop_float_array_get_fn(), blender::bpy_prop_float_array_get_transform_fn(), blender::bpy_prop_float_array_set_fn(), blender::bpy_prop_float_array_set_transform_fn(), blender::bpy_prop_float_get_fn(), blender::bpy_prop_float_get_transform_fn(), blender::bpy_prop_float_set_fn(), blender::bpy_prop_float_set_transform_fn(), blender::bpy_prop_int_array_get_fn(), blender::bpy_prop_int_array_get_transform_fn(), blender::bpy_prop_int_array_set_fn(), blender::bpy_prop_int_array_set_transform_fn(), blender::bpy_prop_int_get_fn(), blender::bpy_prop_int_get_transform_fn(), blender::bpy_prop_int_set_fn(), blender::bpy_prop_int_set_transform_fn(), blender::bpy_prop_pointer_poll_fn(), blender::bpy_prop_py_data_remove(), blender::bpy_prop_string_get_locked_fn(), blender::bpy_prop_string_get_transform_locked_fn(), blender::bpy_prop_string_set_fn(), blender::bpy_prop_string_set_transform_fn(), blender::bpy_prop_string_visit_for_search_fn(), and blender::bpy_prop_update_fn().