Small tooltip change to better indicate the purpose of the node name string and moved the node label button to the top, since this is usually what user will want to edit instead of the identifier name.

This commit is contained in:
Lukas Toenne
2011-03-17 10:31:20 +00:00
parent afd8865181
commit 4c3dea8a2e
2 changed files with 4 additions and 3 deletions

View File

@@ -112,9 +112,10 @@ static void active_node_panel(const bContext *C, Panel *pa)
uiBlockSetHandleFunc(block, do_node_region_buttons, NULL);
/* draw this node's name, etc. */
uiItemR(layout, &ptr, "name", 0, NULL, ICON_NODE);
uiItemR(layout, &ptr, "label", 0, NULL, ICON_NODE);
// TODO: a separator would be nice...
uiItemS(layout);
uiItemR(layout, &ptr, "name", 0, NULL, ICON_NODE);
uiItemS(layout);
/* draw this node's settings */
if (node->typeinfo && node->typeinfo->uifunc)

View File

@@ -2635,7 +2635,7 @@ static void rna_def_node(BlenderRNA *brna)
RNA_def_property_update(prop, NC_NODE, "rna_Node_update");
prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
RNA_def_property_ui_text(prop, "Name", "Node name");
RNA_def_property_ui_text(prop, "Name", "Unique node identifier");
RNA_def_struct_name_property(srna, prop);
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Node_name_set");
RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update");