UI tweak: user texture datablock chooser for fields and warp modifier,
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 20 Oct 2011 14:58:53 +0000 (14:58 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 20 Oct 2011 14:58:53 +0000 (14:58 +0000)
more consistent with other places.

release/scripts/startup/bl_ui/properties_data_modifier.py
release/scripts/startup/bl_ui/properties_physics_field.py

index 62261af729f81be0807ac8738a301574c5c5eddd..e4b152834fc809de7a2296a9d13df985788db690 100644 (file)
@@ -665,7 +665,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         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:")
index f07559625804bddc3f4cd8dd0d56c4833bcfcae4..2229b9dc3dab244bc5f8ec0656eebb8d99541724 100644 (file)
@@ -61,6 +61,10 @@ class PHYSICS_PT_field(PhysicButtonsPanel, Panel):
             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 @@ class PHYSICS_PT_field(PhysicButtonsPanel, Panel):
         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")