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 11,633 Lines • ▼ Show 20 Lines | static void rna_def_node_socket(BlenderRNA *brna) | ||||
| RNA_def_struct_name_property(srna, prop); | RNA_def_struct_name_property(srna, prop); | ||||
| RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_NodeSocket_update"); | RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_NodeSocket_update"); | ||||
| prop = RNA_def_property(srna, "label", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "label", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "label"); | RNA_def_property_string_sdna(prop, NULL, "label"); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Label", "Custom dynamic defined socket label"); | RNA_def_property_ui_text(prop, "Label", "Custom dynamic defined socket label"); | ||||
| prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_XYZ); | |||||
| RNA_def_property_float_sdna(prop, NULL, "locx"); | |||||
| RNA_def_property_array(prop, 2); | |||||
| RNA_def_property_range(prop, -100000.0f, 100000.0f); | |||||
| RNA_def_property_ui_text(prop, "Location", "Location of the node socket"); | |||||
| RNA_def_property_update(prop, NC_NODE, "rna_Node_update"); | |||||
| prop = RNA_def_property(srna, "identifier", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "identifier", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "identifier"); | RNA_def_property_string_sdna(prop, NULL, "identifier"); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Identifier", "Unique identifier for mapping sockets"); | RNA_def_property_ui_text(prop, "Identifier", "Unique identifier for mapping sockets"); | ||||
| prop = RNA_def_property(srna, "description", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "description", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "description"); | RNA_def_property_string_sdna(prop, NULL, "description"); | ||||
| RNA_def_property_ui_text(prop, "Tooltip", "Socket tooltip"); | RNA_def_property_ui_text(prop, "Tooltip", "Socket tooltip"); | ||||
| ▲ Show 20 Lines • Show All 1,982 Lines • Show Last 20 Lines | |||||