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:
@@ -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)
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user