Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | BPy_PropDeferred |
Macros | |
#define | BPy_PropDeferred_CheckTypeExact(v) (Py_TYPE(v) == &bpy_prop_deferred_Type) |
#define | PYRNA_STACK_ARRAY RNA_STACK_ARRAY |
Functions | |
PyObject * | BPY_rna_props (void) |
void | BPY_rna_props_clear_all (void) |
PyObject * | BPy_PointerProperty (PyObject *self, PyObject *args, PyObject *kw) |
PyObject * | BPy_CollectionProperty (PyObject *self, PyObject *args, PyObject *kw) |
StructRNA * | pointer_type_from_py (PyObject *value, const char *error_prefix) |
Variables | |
PyTypeObject | bpy_prop_deferred_Type |
#define BPy_PropDeferred_CheckTypeExact | ( | v | ) | (Py_TYPE(v) == &bpy_prop_deferred_Type) |
Definition at line 35 of file bpy_props.h.
#define PYRNA_STACK_ARRAY RNA_STACK_ARRAY |
Definition at line 37 of file bpy_props.h.
PyObject* BPy_CollectionProperty | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kw | ||
) |
Definition at line 4374 of file bpy_props.c.
References BPy_EnumProperty_Parse_WithSRNA::base, bpy_prop_arg_parse_id(), bpy_prop_arg_parse_tag_defines(), bpy_prop_assign_flag(), bpy_prop_assign_flag_override(), bpy_prop_deferred_data_or_srna(), BPy_EnumProperty_Parse::is_set, BPy_EnumProperty_Parse::items, NULL, pointer_type_from_py(), BPy_PropIDParse::prop_free_handle, pymeth_CollectionProperty, pyrna_enum_bitfield_parse_set(), RNA_def_collection_runtime(), RNA_def_property_duplicate_pointers(), RNA_def_property_free_identifier_deferred_finish(), RNA_def_property_tags(), RNA_def_struct_flag(), rna_enum_property_flag_items, rna_enum_property_override_flag_collection_items, RNA_PropertyGroup, RNA_struct_idprops_contains_datablock(), RNA_struct_is_a(), RNA_struct_ui_name(), BPy_PropIDParse::srna, BPy_EnumProperty_Parse_WithSRNA::srna, STRUCT_CONTAINS_DATABLOCK_IDPROPERTIES, type, EnumPropertyItem::value, BPy_EnumProperty_Parse::value, and BPy_PropIDParse::value.
Referenced by deferred_register_prop().
PyObject* BPy_PointerProperty | ( | PyObject * | self, |
PyObject * | args, | ||
PyObject * | kw | ||
) |
Definition at line 4237 of file bpy_props.c.
References BPy_EnumProperty_Parse_WithSRNA::base, bpy_prop_arg_parse_id(), bpy_prop_arg_parse_tag_defines(), bpy_prop_assign_flag(), bpy_prop_assign_flag_override(), bpy_prop_callback_assign_pointer(), bpy_prop_callback_assign_update(), bpy_prop_callback_check(), bpy_prop_deferred_data_or_srna(), BPy_EnumProperty_Parse::is_set, BPy_EnumProperty_Parse::items, NULL, pointer_type_from_py(), BPy_PropIDParse::prop_free_handle, pymeth_PointerProperty, pyrna_enum_bitfield_parse_set(), RNA_def_pointer_runtime(), RNA_def_property_duplicate_pointers(), RNA_def_property_free_identifier_deferred_finish(), RNA_def_property_tags(), RNA_def_struct_flag(), rna_enum_property_flag_items, rna_enum_property_override_flag_items, RNA_PropertyGroup, RNA_struct_idprops_contains_datablock(), RNA_struct_is_a(), RNA_struct_is_ID(), RNA_struct_ui_name(), BPy_PropIDParse::srna, BPy_EnumProperty_Parse_WithSRNA::srna, STRUCT_CONTAINS_DATABLOCK_IDPROPERTIES, type, EnumPropertyItem::value, BPy_EnumProperty_Parse::value, and BPy_PropIDParse::value.
Referenced by deferred_register_prop().
PyObject* BPY_rna_props | ( | void | ) |
Definition at line 4640 of file bpy_props.c.
References ASSIGN_STATIC, bpy_prop_deferred_Type, bpy_prop_py_data_remove(), NULL, props_module, and RNA_def_property_free_pointers_set_py_data_callback().
Referenced by BPy_init_modules().
Run this on exit, clearing all Python callback users and disable the RNA callback, as it would be called after Python has already finished.
Definition at line 4676 of file bpy_props.c.
References BLI_listbase_clear(), g_bpy_prop_store_list, NULL, props_clear(), and RNA_def_property_free_pointers_set_py_data_callback().
Referenced by BPY_python_end().
StructRNA* pointer_type_from_py | ( | PyObject * | value, |
const char * | error_prefix | ||
) |
Definition at line 4196 of file bpy_props.c.
References NULL, PyC_ExceptionBuffer(), BPy_EnumProperty_Parse_WithSRNA::srna, and srna_from_self().
Referenced by BPy_CollectionProperty(), and BPy_PointerProperty().
|
extern |
Definition at line 281 of file bpy_props.c.
Referenced by bpy_prop_deferred_data_CreatePyObject(), and BPY_rna_props().