[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37231] trunk/blender/release/scripts/ startup/bl_ui/properties_object_constraint.py: replacing -> arrows by proper ASCII arrows on Transformation Constraint

Dalai Felinto dfelinto at gmail.com
Mon Jun 6 01:38:12 CEST 2011


Revision: 37231
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37231
Author:   dfelinto
Date:     2011-06-05 23:38:11 +0000 (Sun, 05 Jun 2011)
Log Message:
-----------
replacing -> arrows by proper ASCII arrows on Transformation Constraint

Note: Text Editor doesn't support this chr(187) properly. I hardcoded and commented the ui file. I hope it's fine.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_object_constraint.py

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_object_constraint.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_object_constraint.py	2011-06-05 23:14:59 UTC (rev 37230)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_object_constraint.py	2011-06-05 23:38:11 UTC (rev 37231)
@@ -655,17 +655,19 @@
         row = col.row()
         row.label(text="Source to Destination Mapping:")
 
+		# note: chr(187) is the ASCII arrow ( >> ). Blender Text Editor can't
+		# open it. Thus we are using the hardcoded value instead.
         row = col.row()
         row.prop(con, "map_to_x_from", expand=False, text="")
-        row.label(text=" -> X")
+        row.label(text=" %s    X" % chr(187))
 
         row = col.row()
         row.prop(con, "map_to_y_from", expand=False, text="")
-        row.label(text=" -> Y")
+        row.label(text=" %s    Y" % chr(187))
 
         row = col.row()
         row.prop(con, "map_to_z_from", expand=False, text="")
-        row.label(text=" -> Z")
+        row.label(text=" %s    Z" % chr(187))
 
         split = layout.split()
 




More information about the Bf-blender-cvs mailing list