From 89ab3cdc56b62ff588d8ecdaaf1c77495cd266c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dietrich?= Date: Thu, 17 Mar 2022 23:57:06 +0100 Subject: [PATCH] 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. --- source/blender/makesrna/intern/rna_nodetree.c | 4 ++-- 1 file 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);