Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_ID.c
| Show First 20 Lines • Show All 1,107 Lines • ▼ Show 20 Lines | # if 0 | ||||
| RNA_def_property_flag(prop, PROP_IDPROPERTY); | RNA_def_property_flag(prop, PROP_IDPROPERTY); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Name", "Unique name used in the code and scripting"); | RNA_def_property_ui_text(prop, "Name", "Unique name used in the code and scripting"); | ||||
| RNA_def_struct_name_property(srna, prop); | RNA_def_struct_name_property(srna, prop); | ||||
| # endif | # endif | ||||
| /* IDP_ID */ | /* IDP_ID */ | ||||
| prop = RNA_def_property(srna, "id", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "id", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_IDPROPERTY | PROP_NEVER_UNLINK); | RNA_def_property_flag(prop, PROP_IDPROPERTY | PROP_EDITABLE); | ||||
mont29: Not sure we should keep the `PROP_NEVER_UNLINK` then? IMHO we might want to un-assign IDs from… | |||||
| RNA_def_property_struct_type(prop, "ID"); | RNA_def_property_struct_type(prop, "ID"); | ||||
| /* ID property groups > level 0, since level 0 group is merged | /* ID property groups > level 0, since level 0 group is merged | ||||
| * with native RNA properties. the builtin_properties will take | * with native RNA properties. the builtin_properties will take | ||||
| * care of the properties here */ | * care of the properties here */ | ||||
| srna = RNA_def_struct(brna, "PropertyGroup", NULL); | srna = RNA_def_struct(brna, "PropertyGroup", NULL); | ||||
| RNA_def_struct_sdna(srna, "IDPropertyGroup"); | RNA_def_struct_sdna(srna, "IDPropertyGroup"); | ||||
| RNA_def_struct_ui_text(srna, "ID Property Group", "Group of ID properties"); | RNA_def_struct_ui_text(srna, "ID Property Group", "Group of ID properties"); | ||||
| ▲ Show 20 Lines • Show All 602 Lines • Show Last 20 Lines | |||||
Not sure we should keep the PROP_NEVER_UNLINK then? IMHO we might want to un-assign IDs from those as well? Isn't that needed int the geometry nodes context?