Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_meta.c
| Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Lines | static void rna_def_metaball_elements(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| RNA_def_enum(func, "type", rna_enum_metaelem_type_items, MB_BALL, "", "type for the new meta-element"); | RNA_def_enum(func, "type", rna_enum_metaelem_type_items, MB_BALL, "", "type for the new meta-element"); | ||||
| parm = RNA_def_pointer(func, "element", "MetaElement", "", "The newly created meta-element"); | parm = RNA_def_pointer(func, "element", "MetaElement", "", "The newly created meta-element"); | ||||
| RNA_def_function_return(func, parm); | RNA_def_function_return(func, parm); | ||||
| func = RNA_def_function(srna, "remove", "rna_MetaBall_elements_remove"); | func = RNA_def_function(srna, "remove", "rna_MetaBall_elements_remove"); | ||||
| RNA_def_function_ui_description(func, "Remove an element from the metaball"); | RNA_def_function_ui_description(func, "Remove an element from the metaball"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| parm = RNA_def_pointer(func, "element", "MetaElement", "", "The element to remove"); | parm = RNA_def_pointer(func, "element", "MetaElement", "", "The element to remove"); | ||||
| RNA_def_property_flag(parm, PROP_REQUIRED | PROP_NEVER_NULL | PROP_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_property_clear_flag(parm, PROP_THICK_WRAP); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| func = RNA_def_function(srna, "clear", "rna_MetaBall_elements_clear"); | func = RNA_def_function(srna, "clear", "rna_MetaBall_elements_clear"); | ||||
| RNA_def_function_ui_description(func, "Remove all elements from the metaball"); | RNA_def_function_ui_description(func, "Remove all elements from the metaball"); | ||||
| prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "lastelem"); | RNA_def_property_pointer_sdna(prop, NULL, "lastelem"); | ||||
| RNA_def_property_ui_text(prop, "Active Element", "Last selected element"); | RNA_def_property_ui_text(prop, "Active Element", "Last selected element"); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines | |||||