Modifier UI: More space for Displace modifier texture ID.
authorThomas Dinges <blender@dingto.org>
Tue, 6 May 2014 13:01:24 +0000 (15:01 +0200)
committerThomas Dinges <blender@dingto.org>
Tue, 6 May 2014 13:02:46 +0000 (15:02 +0200)
Was really cluttered sometimes: http://www.pasteall.org/pic/70876
Reshuffled layout a bit to avoid this now.

release/scripts/startup/bl_ui/properties_data_modifier.py

index 8e3e289ea3bd5dec2786ea5a7910f2fee99ef90f..60187ff1cd505e4b7f371e6fecc746b822983fd8 100644 (file)
@@ -283,29 +283,28 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
     def DISPLACE(self, layout, ob, md):
         has_texture = (md.texture is not None)
 
-        split = layout.split()
-
-        col = split.column()
+        col = layout.column(align=True)
         col.label(text="Texture:")
         col.template_ID(md, "texture", new="texture.new")
-        col.label(text="Vertex Group:")
-        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
-        col = split.column()
+        split = layout.split()
+
+        col = split.column(align=True)
         col.label(text="Direction:")
         col.prop(md, "direction", text="")
-        colsub = col.column()
-        colsub.active = has_texture
-        colsub.label(text="Texture Coordinates:")
-        colsub.prop(md, "texture_coords", text="")
+        col.label(text="Vertex Group:")
+        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
+
+        col = split.column(align=True)
+        col.active = has_texture
+        col.label(text="Texture Coordinates:")
+        col.prop(md, "texture_coords", text="")
         if md.texture_coords == 'OBJECT':
-            row = layout.row()
-            row.active = has_texture
-            row.prop(md, "texture_coords_object", text="Object")
+            col.label(text="Object:")
+            col.prop(md, "texture_coords_object", text="")
         elif md.texture_coords == 'UV' and ob.type == 'MESH':
-            row = layout.row()
-            row.active = has_texture
-            row.prop_search(md, "uv_layer", ob.data, "uv_textures")
+            col.label(text="UV Map:")
+            col.prop_search(md, "uv_layer", ob.data, "uv_textures", text="")
 
         layout.separator()