Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_main_api.c
| Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
| static void rna_idname_validate(const char *name, char *r_name) | static void rna_idname_validate(const char *name, char *r_name) | ||||
| { | { | ||||
| BLI_strncpy(r_name, name, MAX_ID_NAME - 2); | BLI_strncpy(r_name, name, MAX_ID_NAME - 2); | ||||
| BLI_utf8_invalid_strip(r_name, strlen(r_name)); | BLI_utf8_invalid_strip(r_name, strlen(r_name)); | ||||
| } | } | ||||
| static void rna_Main_ID_remove(Main *bmain, ReportList *reports, PointerRNA *id_ptr, int do_unlink) | static void rna_Main_ID_remove(Main *bmain, ReportList *reports, PointerRNA *id_ptr, | ||||
| int do_unlink, int do_id_user, int do_ui_user) | |||||
| { | { | ||||
| ID *id = id_ptr->data; | ID *id = id_ptr->data; | ||||
| if (do_unlink) { | if (do_unlink) { | ||||
| BKE_libblock_delete(bmain, id); | BKE_libblock_delete(bmain, id); | ||||
| RNA_POINTER_INVALIDATE(id_ptr); | RNA_POINTER_INVALIDATE(id_ptr); | ||||
| } | } | ||||
| else if (ID_REAL_USERS(id) <= 0) { | else if (ID_REAL_USERS(id) <= 0) { | ||||
| BKE_libblock_free(bmain, id); | BKE_libblock_free_ex(bmain, id, do_id_user, do_ui_user); | ||||
| RNA_POINTER_INVALIDATE(id_ptr); | RNA_POINTER_INVALIDATE(id_ptr); | ||||
| } | } | ||||
| else { | else { | ||||
| BKE_reportf(reports, RPT_ERROR, | BKE_reportf(reports, RPT_ERROR, | ||||
| "%s '%s' must have zero users to be removed, found %d (try with do_unlink=True parameter)", | "%s '%s' must have zero users to be removed, found %d (try with do_unlink=True parameter)", | ||||
| BKE_idcode_to_name(GS(id->name)), id->name + 2, ID_REAL_USERS(id)); | BKE_idcode_to_name(GS(id->name)), id->name + 2, ID_REAL_USERS(id)); | ||||
| } | } | ||||
| } | } | ||||
| Show All 36 Lines | #endif | ||||
| ED_screen_set_scene(C, sc, scene_new); | ED_screen_set_scene(C, sc, scene_new); | ||||
| #ifdef WITH_PYTHON | #ifdef WITH_PYTHON | ||||
| BPy_END_ALLOW_THREADS; | BPy_END_ALLOW_THREADS; | ||||
| #endif | #endif | ||||
| } | } | ||||
| } | } | ||||
| rna_Main_ID_remove(bmain, reports, scene_ptr, do_unlink); | rna_Main_ID_remove(bmain, reports, scene_ptr, do_unlink, true, true); | ||||
| } | } | ||||
| else { | else { | ||||
| BKE_reportf(reports, RPT_ERROR, "Scene '%s' is the last, cannot be removed", scene->id.name + 2); | BKE_reportf(reports, RPT_ERROR, "Scene '%s' is the last, cannot be removed", scene->id.name + 2); | ||||
| } | } | ||||
| } | } | ||||
| static Object *rna_Main_objects_new(Main *bmain, ReportList *reports, const char *name, ID *data) | static Object *rna_Main_objects_new(Main *bmain, ReportList *reports, const char *name, ID *data) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 460 Lines • ▼ Show 20 Lines | void RNA_def_main_cameras(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a camera from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a camera from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "camera", "Camera", "", "Camera to remove"); | parm = RNA_def_pointer(func, "camera", "Camera", "", "Camera to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", | RNA_def_boolean(func, "do_unlink", true, "", | ||||
| "Unlink all usages of this camera before deleting it " | "Unlink all usages of this camera before deleting it " | ||||
| "(WARNING: will also delete objects instancing that camera data)"); | "(WARNING: will also delete objects instancing that camera data)"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this camera"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this camera"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_cameras_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_cameras_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_cameras_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_cameras_is_updated_get", NULL); | ||||
| ▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | void RNA_def_main_objects(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_ui_description(func, "Remove a object from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a object from the current blendfile"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| parm = RNA_def_pointer(func, "object", "Object", "", "Object to remove"); | parm = RNA_def_pointer(func, "object", "Object", "", "Object to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this object before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this object before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this object"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this object"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_objects_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_objects_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_objects_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_objects_is_updated_get", NULL); | ||||
| Show All 21 Lines | void RNA_def_main_materials(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a material from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a material from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "material", "Material", "", "Material to remove"); | parm = RNA_def_pointer(func, "material", "Material", "", "Material to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this material before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this material before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this material"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this material"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_materials_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_materials_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_materials_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_materials_is_updated_get", NULL); | ||||
| Show All 28 Lines | void RNA_def_main_node_groups(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a node tree from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a node tree from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "tree", "NodeTree", "", "Node tree to remove"); | parm = RNA_def_pointer(func, "tree", "NodeTree", "", "Node tree to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this node tree before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this node tree before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this node tree"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this node tree"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_node_groups_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_node_groups_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_node_groups_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_node_groups_is_updated_get", NULL); | ||||
| ▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | void RNA_def_main_meshes(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a mesh from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a mesh from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "mesh", "Mesh", "", "Mesh to remove"); | parm = RNA_def_pointer(func, "mesh", "Mesh", "", "Mesh to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", | RNA_def_boolean(func, "do_unlink", true, "", | ||||
| "Unlink all usages of this mesh before deleting it " | "Unlink all usages of this mesh before deleting it " | ||||
| "(WARNING: will also delete objects instancing that mesh data)"); | "(WARNING: will also delete objects instancing that mesh data)"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this mesh data"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this mesh data"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_meshes_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_meshes_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_meshes_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_meshes_is_updated_get", NULL); | ||||
| Show All 24 Lines | void RNA_def_main_lamps(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a lamp from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a lamp from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "lamp", "Lamp", "", "Lamp to remove"); | parm = RNA_def_pointer(func, "lamp", "Lamp", "", "Lamp to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", | RNA_def_boolean(func, "do_unlink", true, "", | ||||
| "Unlink all usages of this lamp before deleting it " | "Unlink all usages of this lamp before deleting it " | ||||
| "(WARNING: will also delete objects instancing that lamp data)"); | "(WARNING: will also delete objects instancing that lamp data)"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this lamp data"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this lamp data"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_lamps_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_lamps_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_lamps_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_lamps_is_updated_get", NULL); | ||||
| ▲ Show 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | void RNA_def_main_images(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove an image from the current blendfile"); | RNA_def_function_ui_description(func, "Remove an image from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "image", "Image", "", "Image to remove"); | parm = RNA_def_pointer(func, "image", "Image", "", "Image to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this image before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this image before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this image"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this image"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_images_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_images_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_images_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_images_is_updated_get", NULL); | ||||
| Show All 23 Lines | void RNA_def_main_lattices(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a lattice from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a lattice from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "lattice", "Lattice", "", "Lattice to remove"); | parm = RNA_def_pointer(func, "lattice", "Lattice", "", "Lattice to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", | RNA_def_boolean(func, "do_unlink", true, "", | ||||
| "Unlink all usages of this lattice before deleting it " | "Unlink all usages of this lattice before deleting it " | ||||
| "(WARNING: will also delete objects instancing that lattice data)"); | "(WARNING: will also delete objects instancing that lattice data)"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this lattice data"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this lattice data"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_lattices_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_lattices_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_lattices_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_lattices_is_updated_get", NULL); | ||||
| Show All 24 Lines | void RNA_def_main_curves(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a curve from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a curve from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "curve", "Curve", "", "Curve to remove"); | parm = RNA_def_pointer(func, "curve", "Curve", "", "Curve to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", | RNA_def_boolean(func, "do_unlink", true, "", | ||||
| "Unlink all usages of this curve before deleting it " | "Unlink all usages of this curve before deleting it " | ||||
| "(WARNING: will also delete objects instancing that curve data)"); | "(WARNING: will also delete objects instancing that curve data)"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this curve data"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this curve data"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_curves_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_curves_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_curves_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_curves_is_updated_get", NULL); | ||||
| Show All 22 Lines | void RNA_def_main_metaballs(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a metaball from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a metaball from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "metaball", "MetaBall", "", "Metaball to remove"); | parm = RNA_def_pointer(func, "metaball", "MetaBall", "", "Metaball to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", | RNA_def_boolean(func, "do_unlink", true, "", | ||||
| "Unlink all usages of this metaball before deleting it " | "Unlink all usages of this metaball before deleting it " | ||||
| "(WARNING: will also delete objects instancing that metaball data)"); | "(WARNING: will also delete objects instancing that metaball data)"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this metaball data"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this metaball data"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_metaballs_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_metaballs_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_metaballs_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_metaballs_is_updated_get", NULL); | ||||
| Show All 22 Lines | void RNA_def_main_fonts(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a font from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a font from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "vfont", "VectorFont", "", "Font to remove"); | parm = RNA_def_pointer(func, "vfont", "VectorFont", "", "Font to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this font before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this font before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this font"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this font"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_fonts_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_fonts_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_fonts_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_fonts_is_updated_get", NULL); | ||||
| Show All 22 Lines | void RNA_def_main_textures(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a texture from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a texture from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "texture", "Texture", "", "Texture to remove"); | parm = RNA_def_pointer(func, "texture", "Texture", "", "Texture to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this texture before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this texture before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this texture"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this texture"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_textures_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_textures_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_textures_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_textures_is_updated_get", NULL); | ||||
| Show All 21 Lines | void RNA_def_main_brushes(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a brush from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a brush from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "brush", "Brush", "", "Brush to remove"); | parm = RNA_def_pointer(func, "brush", "Brush", "", "Brush to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this brush before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this brush before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this brush"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this brush"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_brushes_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_brushes_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_brushes_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_brushes_is_updated_get", NULL); | ||||
| Show All 21 Lines | void RNA_def_main_worlds(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a world from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a world from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "world", "World", "", "World to remove"); | parm = RNA_def_pointer(func, "world", "World", "", "World to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this world before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this world before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this world"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this world"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_worlds_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_worlds_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_worlds_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_worlds_is_updated_get", NULL); | ||||
| Show All 21 Lines | void RNA_def_main_groups(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_ui_description(func, "Remove a group from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a group from the current blendfile"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| parm = RNA_def_pointer(func, "group", "Group", "", "Group to remove"); | parm = RNA_def_pointer(func, "group", "Group", "", "Group to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this group before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this group before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this group"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this group"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_groups_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_groups_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_groups_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_groups_is_updated_get", NULL); | ||||
| Show All 23 Lines | void RNA_def_main_speakers(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a speaker from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a speaker from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "speaker", "Speaker", "", "Speaker to remove"); | parm = RNA_def_pointer(func, "speaker", "Speaker", "", "Speaker to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", | RNA_def_boolean(func, "do_unlink", true, "", | ||||
| "Unlink all usages of this speaker before deleting it " | "Unlink all usages of this speaker before deleting it " | ||||
| "(WARNING: will also delete objects instancing that speaker data)"); | "(WARNING: will also delete objects instancing that speaker data)"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this speaker data"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this speaker data"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_speakers_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_speakers_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_speakers_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_speakers_is_updated_get", NULL); | ||||
| Show All 21 Lines | void RNA_def_main_texts(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_ui_description(func, "Remove a text from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a text from the current blendfile"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| parm = RNA_def_pointer(func, "text", "Text", "", "Text to remove"); | parm = RNA_def_pointer(func, "text", "Text", "", "Text to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this text before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this text before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this text"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this text"); | |||||
| /* load func */ | /* load func */ | ||||
| func = RNA_def_function(srna, "load", "rna_Main_texts_load"); | func = RNA_def_function(srna, "load", "rna_Main_texts_load"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Add a new text to the main database from a file"); | RNA_def_function_ui_description(func, "Add a new text to the main database from a file"); | ||||
| parm = RNA_def_string_file_path(func, "filepath", "Path", FILE_MAX, "", "path for the data-block"); | parm = RNA_def_string_file_path(func, "filepath", "Path", FILE_MAX, "", "path for the data-block"); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| parm = RNA_def_boolean(func, "internal", 0, "Make internal", "Make text file internal after loading"); | parm = RNA_def_boolean(func, "internal", 0, "Make internal", "Make text file internal after loading"); | ||||
| Show All 34 Lines | void RNA_def_main_sounds(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a sound from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a sound from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "sound", "Sound", "", "Sound to remove"); | parm = RNA_def_pointer(func, "sound", "Sound", "", "Sound to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this sound before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this sound before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this sound"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this sound"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_sounds_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_sounds_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_sounds_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_sounds_is_updated_get", NULL); | ||||
| Show All 23 Lines | void RNA_def_main_armatures(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a armature from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a armature from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "armature", "Armature", "", "Armature to remove"); | parm = RNA_def_pointer(func, "armature", "Armature", "", "Armature to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", | RNA_def_boolean(func, "do_unlink", true, "", | ||||
| "Unlink all usages of this armature before deleting it " | "Unlink all usages of this armature before deleting it " | ||||
| "(WARNING: will also delete objects instancing that armature data)"); | "(WARNING: will also delete objects instancing that armature data)"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this armature data"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this armature data"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_armatures_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_armatures_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_armatures_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_armatures_is_updated_get", NULL); | ||||
| Show All 20 Lines | void RNA_def_main_actions(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a action from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a action from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "action", "Action", "", "Action to remove"); | parm = RNA_def_pointer(func, "action", "Action", "", "Action to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this action before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this action before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this action"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this action"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_actions_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_actions_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_actions_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_actions_is_updated_get", NULL); | ||||
| Show All 20 Lines | void RNA_def_main_particles(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a particle settings instance from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a particle settings instance from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "particle", "ParticleSettings", "", "Particle Settings to remove"); | parm = RNA_def_pointer(func, "particle", "ParticleSettings", "", "Particle Settings to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of those particle settings before deleting them"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of those particle settings before deleting them"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this particle settings"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this particle settings"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_particles_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_particles_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_particles_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_particles_is_updated_get", NULL); | ||||
| Show All 20 Lines | void RNA_def_main_palettes(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a palette from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a palette from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "palette", "Palette", "", "Palette to remove"); | parm = RNA_def_pointer(func, "palette", "Palette", "", "Palette to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this palette before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this palette before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this palette"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this palette"); | |||||
| func = RNA_def_function(srna, "tag", "rna_Main_palettes_tag"); | func = RNA_def_function(srna, "tag", "rna_Main_palettes_tag"); | ||||
| parm = RNA_def_boolean(func, "value", 0, "Value", ""); | parm = RNA_def_boolean(func, "value", 0, "Value", ""); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_palettes_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_palettes_is_updated_get", NULL); | ||||
| ▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | void RNA_def_main_gpencil(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a grease pencil instance from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a grease pencil instance from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "grease_pencil", "GreasePencil", "", "Grease Pencil to remove"); | parm = RNA_def_pointer(func, "grease_pencil", "GreasePencil", "", "Grease Pencil to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this grease pencil before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this grease pencil before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this grease pencil"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this grease pencil"); | |||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_gpencil_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_gpencil_is_updated_get", NULL); | ||||
| } | } | ||||
| void RNA_def_main_movieclips(BlenderRNA *brna, PropertyRNA *cprop) | void RNA_def_main_movieclips(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| { | { | ||||
| Show All 13 Lines | void RNA_def_main_movieclips(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a movie clip from the current blendfile."); | RNA_def_function_ui_description(func, "Remove a movie clip from the current blendfile."); | ||||
| parm = RNA_def_pointer(func, "clip", "MovieClip", "", "Movie clip to remove"); | parm = RNA_def_pointer(func, "clip", "MovieClip", "", "Movie clip to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this movie clip before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this movie clip before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this movie clip"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this movie clip"); | |||||
| /* load func */ | /* load func */ | ||||
| func = RNA_def_function(srna, "load", "rna_Main_movieclip_load"); | func = RNA_def_function(srna, "load", "rna_Main_movieclip_load"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description( | RNA_def_function_ui_description( | ||||
| func, "Add a new movie clip to the main database from a file " | func, "Add a new movie clip to the main database from a file " | ||||
| "(while ``check_existing`` is disabled for consistency with other load functions, " | "(while ``check_existing`` is disabled for consistency with other load functions, " | ||||
| "behavior with multiple movie-clips using the same file may incorrectly generate proxies)"); | "behavior with multiple movie-clips using the same file may incorrectly generate proxies)"); | ||||
| Show All 36 Lines | void RNA_def_main_masks(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| /* remove func */ | /* remove func */ | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a masks from the current blendfile."); | RNA_def_function_ui_description(func, "Remove a masks from the current blendfile."); | ||||
| parm = RNA_def_pointer(func, "mask", "Mask", "", "Mask to remove"); | parm = RNA_def_pointer(func, "mask", "Mask", "", "Mask to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this mask before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this mask before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this mask"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this mask"); | |||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_masks_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_masks_is_updated_get", NULL); | ||||
| } | } | ||||
| void RNA_def_main_linestyles(BlenderRNA *brna, PropertyRNA *cprop) | void RNA_def_main_linestyles(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| { | { | ||||
| Show All 21 Lines | void RNA_def_main_linestyles(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | func = RNA_def_function(srna, "remove", "rna_Main_ID_remove"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| RNA_def_function_ui_description(func, "Remove a line style instance from the current blendfile"); | RNA_def_function_ui_description(func, "Remove a line style instance from the current blendfile"); | ||||
| parm = RNA_def_pointer(func, "linestyle", "FreestyleLineStyle", "", "Line style to remove"); | parm = RNA_def_pointer(func, "linestyle", "FreestyleLineStyle", "", "Line style to remove"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED | PARM_RNAPTR); | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this line style before deleting it"); | RNA_def_boolean(func, "do_unlink", true, "", "Unlink all usages of this line style before deleting it"); | ||||
| RNA_def_boolean(func, "do_id_user", true, "", | |||||
| "Decrement user counter of all datablocks used by this line style"); | |||||
| RNA_def_boolean(func, "do_ui_user", true, "", | |||||
| "Make sure interface does not reference this line style"); | |||||
| prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_Main_linestyle_is_updated_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_Main_linestyle_is_updated_get", NULL); | ||||
| } | } | ||||
| #endif | #endif | ||||