[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49407] branches/ge_harmony/release/ scripts/startup/bl_ui/properties_game.py: Getting rid of the colon after the name of a reserved uniform in the shader UIs .

Daniel Stokes kupomail at gmail.com
Tue Jul 31 10:49:28 CEST 2012


Revision: 49407
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49407
Author:   kupoman
Date:     2012-07-31 08:49:27 +0000 (Tue, 31 Jul 2012)
Log Message:
-----------
Getting rid of the colon after the name of a reserved uniform in the shader UIs. It is a little out of place without a value field.

Modified Paths:
--------------
    branches/ge_harmony/release/scripts/startup/bl_ui/properties_game.py

Modified: branches/ge_harmony/release/scripts/startup/bl_ui/properties_game.py
===================================================================
--- branches/ge_harmony/release/scripts/startup/bl_ui/properties_game.py	2012-07-31 02:14:13 UTC (rev 49406)
+++ branches/ge_harmony/release/scripts/startup/bl_ui/properties_game.py	2012-07-31 08:49:27 UTC (rev 49407)
@@ -393,15 +393,19 @@
                 if hasattr(uniform, "value"):
                     reserved = uniform.name.startswith("bgl_")
                     if uniform.type in ("VEC2", "VEC3", "VEC4", "IVEC2", "IVEC3", "IVEC4"):
-                        col.label(uniform.name + ":")
                         if not reserved:
+                            col.label(uniform.name + ":")
                             row = col.row()
                             row.prop(uniform, "value", text="")
+                        else:
+                            col.label(uniform.name)
                     else:
                         row = col.row()
-                        row.label(uniform.name + ":")
                         if not reserved:
+                            row.label(uniform.name + ":")
                             row.prop(uniform, "value", text="")
+                        else:
+                            row.label(uniform.name)
                         
                     col.active = not reserved
 




More information about the Bf-blender-cvs mailing list