Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_ID.c
| Show First 20 Lines • Show All 1,333 Lines • ▼ Show 20 Lines | static void rna_def_library(BlenderRNA *brna) | ||||
| func = RNA_def_function(srna, "reload", "WM_lib_reload"); | func = RNA_def_function(srna, "reload", "WM_lib_reload"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS | FUNC_USE_CONTEXT); | RNA_def_function_flag(func, FUNC_USE_REPORTS | FUNC_USE_CONTEXT); | ||||
| RNA_def_function_ui_description(func, "Reload this library and all its linked data-blocks"); | RNA_def_function_ui_description(func, "Reload this library and all its linked data-blocks"); | ||||
| } | } | ||||
| /** | /** | ||||
| * \attention This is separate from the above. It allows for RNA functions to | * \attention This is separate from the above. It allows for RNA functions to | ||||
| * return an IDProperty *. See MovieClip.metadata for a usage example. | * return an IDProperty *. See MovieClip.metadata for a usage example. | ||||
| **/ | */ | ||||
| static void rna_def_idproperty_wrap_ptr(BlenderRNA *brna) | static void rna_def_idproperty_wrap_ptr(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| srna = RNA_def_struct(brna, "IDPropertyWrapPtr", NULL); | srna = RNA_def_struct(brna, "IDPropertyWrapPtr", NULL); | ||||
| RNA_def_struct_idprops_func(srna, "rna_IDPropertyWrapPtr_idprops"); | RNA_def_struct_idprops_func(srna, "rna_IDPropertyWrapPtr_idprops"); | ||||
| RNA_def_struct_flag(srna, STRUCT_NO_DATABLOCK_IDPROPERTIES); | RNA_def_struct_flag(srna, STRUCT_NO_DATABLOCK_IDPROPERTIES); | ||||
| } | } | ||||
| Show All 23 Lines | |||||