[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35592] trunk/blender/source/blender: 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 .
Lukas Toenne
lukas.toenne at googlemail.com
Thu Mar 17 11:31:20 CET 2011
Revision: 35592
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35592
Author: lukastoenne
Date: 2011-03-17 10:31:20 +0000 (Thu, 17 Mar 2011)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_node/node_buttons.c
trunk/blender/source/blender/makesrna/intern/rna_nodetree.c
Modified: trunk/blender/source/blender/editors/space_node/node_buttons.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/node_buttons.c 2011-03-17 10:11:12 UTC (rev 35591)
+++ trunk/blender/source/blender/editors/space_node/node_buttons.c 2011-03-17 10:31:20 UTC (rev 35592)
@@ -112,9 +112,10 @@
uiBlockSetHandleFunc(block, do_node_region_buttons, NULL);
/* draw this node's name, etc. */
+ uiItemR(layout, &ptr, "label", 0, NULL, ICON_NODE);
+ uiItemS(layout);
uiItemR(layout, &ptr, "name", 0, NULL, ICON_NODE);
- uiItemR(layout, &ptr, "label", 0, NULL, ICON_NODE);
- // TODO: a separator would be nice...
+ uiItemS(layout);
/* draw this node's settings */
if (node->typeinfo && node->typeinfo->uifunc)
Modified: trunk/blender/source/blender/makesrna/intern/rna_nodetree.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_nodetree.c 2011-03-17 10:11:12 UTC (rev 35591)
+++ trunk/blender/source/blender/makesrna/intern/rna_nodetree.c 2011-03-17 10:31:20 UTC (rev 35592)
@@ -2635,7 +2635,7 @@
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");
More information about the Bf-blender-cvs
mailing list