Modifier UI: More space for Displace modifier texture ID.

Was really cluttered sometimes: http://www.pasteall.org/pic/70876
Reshuffled layout a bit to avoid this now.
This commit is contained in:
2014-05-06 15:01:24 +02:00
parent 45b4506c0d
commit e393dde435

View 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")
split = layout.split()
col = split.column(align=True)
col.label(text="Direction:")
col.prop(md, "direction", text="")
col.label(text="Vertex Group:")
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
col = split.column()
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 = 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()