Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_modifier.py
| Show First 20 Lines • Show All 330 Lines • ▼ Show 20 Lines | def DISPLACE(self, layout, ob, md): | ||||
| col.label(text="Texture:") | col.label(text="Texture:") | ||||
| col.template_ID(md, "texture", new="texture.new") | col.template_ID(md, "texture", new="texture.new") | ||||
| split = layout.split() | split = layout.split() | ||||
| col = split.column(align=True) | col = split.column(align=True) | ||||
| col.label(text="Direction:") | col.label(text="Direction:") | ||||
| col.prop(md, "direction", text="") | col.prop(md, "direction", text="") | ||||
| if md.direction in {'X', 'Y', 'Z', 'RGB_TO_XYZ'}: | |||||
| col.label(text="Space:") | |||||
| col.prop(md, "space", text="") | |||||
| col.label(text="Vertex Group:") | col.label(text="Vertex Group:") | ||||
| col.prop_search(md, "vertex_group", ob, "vertex_groups", text="") | col.prop_search(md, "vertex_group", ob, "vertex_groups", text="") | ||||
| col = split.column(align=True) | col = split.column(align=True) | ||||
| col.active = has_texture | col.active = has_texture | ||||
| col.label(text="Texture Coordinates:") | col.label(text="Texture Coordinates:") | ||||
| col.prop(md, "texture_coords", text="") | col.prop(md, "texture_coords", text="") | ||||
| if md.texture_coords == 'OBJECT': | if md.texture_coords == 'OBJECT': | ||||
| ▲ Show 20 Lines • Show All 1,150 Lines • Show Last 20 Lines | |||||