diff options
author | Charlie Jolly <charlie> | 2020-02-11 18:31:40 +0300 |
---|---|---|
committer | Charlie Jolly <mistajolly@gmail.com> | 2020-02-11 19:09:25 +0300 |
commit | 7b0aca2a530fb1a42367eebf595a1c6ca93dba7d (patch) | |
tree | f439158ad17e09591daba9ae10c6a3a9f83ed531 /source/blender/makesrna | |
parent | 64e65442a1857033a9f139893eaff56b53cbd667 (diff) |
Nodes: Add dynamic label support for Math Nodes
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D6375
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 68e3e522dff..180bf96dd90 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -7891,6 +7891,11 @@ static void rna_def_node_socket(BlenderRNA *brna) RNA_def_struct_name_property(srna, prop); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_NodeSocket_update"); + prop = RNA_def_property(srna, "label", PROP_STRING, PROP_NONE); + RNA_def_property_string_sdna(prop, NULL, "label"); + RNA_def_property_clear_flag(prop, PROP_EDITABLE); + RNA_def_property_ui_text(prop, "Label", "Custom dynamic defined socket label"); + prop = RNA_def_property(srna, "identifier", PROP_STRING, PROP_NONE); RNA_def_property_string_sdna(prop, NULL, "identifier"); RNA_def_property_clear_flag(prop, PROP_EDITABLE); |