Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 10,884 Lines • ▼ Show 20 Lines | static void rna_def_node_socket_interface(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "attribute_domain", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "attribute_domain", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, rna_enum_attribute_domain_items); | RNA_def_property_enum_items(prop, rna_enum_attribute_domain_items); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Attribute Domain", | "Attribute Domain", | ||||
| "Attribute domain used by the geometry nodes modifier to create an attribute output"); | "Attribute domain used by the geometry nodes modifier to create an attribute output"); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_NodeSocketInterface_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_NodeSocketInterface_update"); | ||||
| prop = RNA_def_property(srna, "default_attribute_name", PROP_STRING, PROP_NONE); | |||||
| RNA_def_property_string_sdna(prop, NULL, "default_attribute_name"); | |||||
| RNA_def_property_ui_text(prop, | |||||
| "Default Attribute", | |||||
| "The attribute name used by default when the node group is used by a " | |||||
| "geometry nodes modifier"); | |||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_NodeSocketInterface_update"); | |||||
| /* registration */ | /* registration */ | ||||
| prop = RNA_def_property(srna, "bl_socket_idname", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "bl_socket_idname", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "typeinfo->idname"); | RNA_def_property_string_sdna(prop, NULL, "typeinfo->idname"); | ||||
| RNA_def_property_flag(prop, PROP_REGISTER); | RNA_def_property_flag(prop, PROP_REGISTER); | ||||
| RNA_def_property_ui_text(prop, "ID Name", ""); | RNA_def_property_ui_text(prop, "ID Name", ""); | ||||
| prop = RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "bl_label", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "typeinfo->label"); | RNA_def_property_string_sdna(prop, NULL, "typeinfo->label"); | ||||
| ▲ Show 20 Lines • Show All 1,798 Lines • Show Last 20 Lines | |||||