[Bf-blender-cvs] [e393dde] master: Modifier UI: More space for Displace modifier texture ID.
Thomas Dinges
noreply at git.blender.org
Tue May 6 15:02:56 CEST 2014
Commit: e393dde435ab2f944cff03e6312cae437800184f
Author: Thomas Dinges
Date: Tue May 6 15:01:24 2014 +0200
https://developer.blender.org/rBe393dde435ab2f944cff03e6312cae437800184f
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.
===================================================================
M release/scripts/startup/bl_ui/properties_data_modifier.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py
index 8e3e289..60187ff 100644
--- a/release/scripts/startup/bl_ui/properties_data_modifier.py
+++ b/release/scripts/startup/bl_ui/properties_data_modifier.py
@@ -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()
More information about the Bf-blender-cvs
mailing list