[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41153] trunk/blender/release/scripts/ startup/bl_ui: UI tweak: user texture datablock chooser for fields and warp modifier,

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Oct 20 16:58:53 CEST 2011


Revision: 41153
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41153
Author:   blendix
Date:     2011-10-20 14:58:53 +0000 (Thu, 20 Oct 2011)
Log Message:
-----------
UI tweak: user texture datablock chooser for fields and warp modifier,
more consistent with other places.

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

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py	2011-10-20 14:55:02 UTC (rev 41152)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py	2011-10-20 14:58:53 UTC (rev 41153)
@@ -665,7 +665,7 @@
         split = layout.split()
         col = split.column()
         col.label(text="Texture:")
-        col.prop(md, "texture", text="")
+        col.template_ID(md, "texture", new="texture.new")
 
         col = split.column()
         col.label(text="Texture Coordinates:")

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_physics_field.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_physics_field.py	2011-10-20 14:55:02 UTC (rev 41152)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_physics_field.py	2011-10-20 14:58:53 UTC (rev 41153)
@@ -61,6 +61,10 @@
             split = layout.split(percentage=0.2)
             split.label(text="Shape:")
             split.prop(field, "shape", text="")
+        elif field.type == 'TEXTURE':
+            split = layout.split(percentage=0.2)
+            split.label(text="Texture:")
+            split.row().template_ID(field, "texture", new="texture.new")
 
         split = layout.split()
 
@@ -103,7 +107,6 @@
         elif field.type == 'TEXTURE':
             col = split.column()
             col.prop(field, "strength")
-            col.prop(field, "texture", text="")
             col.prop(field, "texture_mode", text="")
             col.prop(field, "texture_nabla")
 




More information about the Bf-blender-cvs mailing list