diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_nodetree.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 684ff182988..6556eaa8b50 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -10754,21 +10754,21 @@ static void def_geo_string_to_curves(StructRNA *srna) RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); } -/* Weld mode is only used when welding mesh data. */ -const EnumPropertyItem rna_enum_geometry_nodes_weld_mode_items[] = { - {0, "ALL", 0, "All", "Full merge by distance"}, - {1, "CONNECTED", 0, "Connected", "Only merge along the edges"}, - {0, NULL, 0, NULL, NULL}, -}; - static void def_geo_merge_by_distance(StructRNA *srna) { + static const EnumPropertyItem rna_enum_geometry_nodes_weld_mode_items[] = { + {0, "ALL", 0, "All", "Full merge by distance."}, + {1, "CONNECTED", 0, "Connected", "Only merge along the edges"}, + {0, NULL, 0, NULL, NULL}, + }; + PropertyRNA *prop; prop = RNA_def_property(srna, "merge_mode", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "custom1"); RNA_def_property_enum_items(prop, rna_enum_geometry_nodes_weld_mode_items); - RNA_def_property_ui_text(prop, "Mode", "Mode defines the merge rule"); + RNA_def_property_ui_text( + prop, "Mode", "Mode defines the merge rule. Only used when welding mesh data."); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); } /* -------------------------------------------------------------------------- */ |