[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30704] branches/soc-2010-moguri/release/ scripts/ui/properties_material.py: Adding a "Custom Uniform" label.

Mitchell Stokes mogurijin at gmail.com
Sun Jul 25 03:44:32 CEST 2010


Revision: 30704
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30704
Author:   moguri
Date:     2010-07-25 03:44:32 +0200 (Sun, 25 Jul 2010)

Log Message:
-----------
Adding a "Custom Uniform" label.

Modified Paths:
--------------
    branches/soc-2010-moguri/release/scripts/ui/properties_material.py

Modified: branches/soc-2010-moguri/release/scripts/ui/properties_material.py
===================================================================
--- branches/soc-2010-moguri/release/scripts/ui/properties_material.py	2010-07-25 01:39:47 UTC (rev 30703)
+++ branches/soc-2010-moguri/release/scripts/ui/properties_material.py	2010-07-25 01:44:32 UTC (rev 30704)
@@ -806,6 +806,7 @@
 
         col.operator("material.force_update", text="Reload Shaders")
 		
+        col.label(text="Custom Uniforms:")
         row = layout.row()
         col = row.column()
         col.template_list(mat, "uniforms", mat, "active_uniform_index")
@@ -816,13 +817,11 @@
         lay = mat.active_uniform
         if lay:
             row = layout.row()
-            #layout.label(text="")
             row.prop(lay, "name")
             row.prop(lay, "type", text="")
             if hasattr(lay, "value"):
                 row = layout.row()
                 row.prop(lay, "value")
-                # row.prop(lay, "size")
 
 class VolumeButtonsPanel(bpy.types.Panel):
     bl_space_type = 'PROPERTIES'





More information about the Bf-blender-cvs mailing list