Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2022-03-18 01:57:06 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2022-03-18 01:57:06 +0300
commit89ab3cdc56b62ff588d8ecdaaf1c77495cd266c2 (patch)
treeac6c46b2dcfbb69bd0868fc2b96a8eae090ad51a
parenta67c7693a76b9043300f85d95e5fdeb7ac65583f (diff)
Fix wrong documentation/UI text for NodeLink
`RNA_def_struct_ui_text(srna, ...)` was reused for `is_valid` and `is_muted` which would set the documentation to theirs (actually to that of the last call). `RNA_def_property_ui_text(prop, ...)` should be used for the properties.
-rw-r--r--source/blender/makesrna/intern/rna_nodetree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index 2c6a4f5adeb..70b335446fc 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -12025,12 +12025,12 @@ static void rna_def_node_link(BlenderRNA *brna)
prop = RNA_def_property(srna, "is_valid", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flag", NODE_LINK_VALID);
- RNA_def_struct_ui_text(srna, "Valid", "Link is valid");
+ RNA_def_property_ui_text(prop, "Valid", "Link is valid");
RNA_def_property_update(prop, NC_NODE | NA_EDITED, NULL);
prop = RNA_def_property(srna, "is_muted", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flag", NODE_LINK_MUTED);
- RNA_def_struct_ui_text(srna, "Muted", "Link is muted and can be ignored");
+ RNA_def_property_ui_text(prop, "Muted", "Link is muted and can be ignored");
RNA_def_property_update(prop, NC_NODE | NA_EDITED, NULL);
prop = RNA_def_property(srna, "from_node", PROP_POINTER, PROP_NONE);