diff options
author | Thomas Dinges <blender@dingto.org> | 2011-02-26 19:04:14 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2011-02-26 19:04:14 +0300 |
commit | ab9490f8ead1f86fbc834f05177fc731ec3aa69b (patch) | |
tree | 65393797338be3b0d0cf8735b4a87eda8168ea22 /release/scripts/ui/properties_material.py | |
parent | a5eba49ccbb439b36e1ab2cc5d3b15952b787025 (diff) |
2.5 UI Scripts:
* More code cleanup.
When removing the narrow_ui feature, a lot of split functions were kept. Changed them to rows, which are more easily readable. Check out properties_data_lattice.py for a good example.
Diffstat (limited to 'release/scripts/ui/properties_material.py')
-rw-r--r-- | release/scripts/ui/properties_material.py | 35 |
1 files changed, 12 insertions, 23 deletions
diff --git a/release/scripts/ui/properties_material.py b/release/scripts/ui/properties_material.py index 272862c3187..bb46e2191db 100644 --- a/release/scripts/ui/properties_material.py +++ b/release/scripts/ui/properties_material.py @@ -249,15 +249,11 @@ class MATERIAL_PT_diffuse(MaterialButtonsPanel, bpy.types.Panel): layout.template_color_ramp(mat, "diffuse_ramp", expand=True) layout.separator() - split = layout.split() - - col = split.column() - col.prop(mat, "diffuse_ramp_input", text="Input") - - col = split.column() - col.prop(mat, "diffuse_ramp_blend", text="Blend") row = layout.row() - row.prop(mat, "diffuse_ramp_factor", text="Factor") + row.prop(mat, "diffuse_ramp_input", text="Input") + row.prop(mat, "diffuse_ramp_blend", text="Blend") + + layout.prop(mat, "diffuse_ramp_factor", text="Factor") class MATERIAL_PT_specular(MaterialButtonsPanel, bpy.types.Panel): @@ -305,16 +301,12 @@ class MATERIAL_PT_specular(MaterialButtonsPanel, bpy.types.Panel): layout.separator() layout.template_color_ramp(mat, "specular_ramp", expand=True) layout.separator() - split = layout.split() - - col = split.column() - col.prop(mat, "specular_ramp_input", text="Input") - - col = split.column() - col.prop(mat, "specular_ramp_blend", text="Blend") row = layout.row() - row.prop(mat, "specular_ramp_factor", text="Factor") + row.prop(mat, "specular_ramp_input", text="Input") + row.prop(mat, "specular_ramp_blend", text="Blend") + + layout.prop(mat, "specular_ramp_factor", text="Factor") class MATERIAL_PT_shading(MaterialButtonsPanel, bpy.types.Panel): @@ -825,13 +817,10 @@ class MATERIAL_PT_volume_density(VolumeButtonsPanel, bpy.types.Panel): layout = self.layout vol = context.material.volume # dont use node material - - split = layout.split() - col = split.column() - col.prop(vol, "density") - - col = split.column() - col.prop(vol, "density_scale") + + row = layout.row() + row.prop(vol, "density") + row.prop(vol, "density_scale") class MATERIAL_PT_volume_shading(VolumeButtonsPanel, bpy.types.Panel): |