diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-25 19:06:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-25 19:06:14 +0300 |
commit | b25db7c8cb3bf41e19b99c0d3c83b27bfa8d23d6 (patch) | |
tree | ea91504c5f27ab94cbe035f1d2059c8170ec30c8 /release/scripts/ui/properties_material.py | |
parent | 24685d39670b28fad4a4f28fe43b8cbd04fb3c2e (diff) |
pep8 cleanup
Diffstat (limited to 'release/scripts/ui/properties_material.py')
-rw-r--r-- | release/scripts/ui/properties_material.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/release/scripts/ui/properties_material.py b/release/scripts/ui/properties_material.py index 8ba2d4181d4..272862c3187 100644 --- a/release/scripts/ui/properties_material.py +++ b/release/scripts/ui/properties_material.py @@ -361,10 +361,10 @@ class MATERIAL_PT_transp(MaterialButtonsPanel, bpy.types.Panel): mat = context.material engine = context.scene.render.engine return check_material(mat) and (mat.type in ('SURFACE', 'WIRE')) and (engine in cls.COMPAT_ENGINES) - + def draw_header(self, context): mat = context.material - + if simple_material(mat): self.layout.prop(mat, "use_transparency", text="") @@ -374,14 +374,14 @@ class MATERIAL_PT_transp(MaterialButtonsPanel, bpy.types.Panel): base_mat = context.material mat = active_node_mat(context.material) rayt = mat.raytrace_transparency - + if simple_material(base_mat): row = layout.row() row.active = mat.use_transparency row.prop(mat, "transparency_method", expand=True) split = layout.split() - + col = split.column() col.prop(mat, "alpha") row = col.row() @@ -698,7 +698,7 @@ class MATERIAL_PT_options(MaterialButtonsPanel, bpy.types.Panel): def draw(self, context): layout = self.layout - + base_mat = context.material mat = active_node_mat(base_mat) @@ -746,7 +746,7 @@ class MATERIAL_PT_shadow(MaterialButtonsPanel, bpy.types.Panel): def draw(self, context): layout = self.layout - + base_mat = context.material mat = active_node_mat(base_mat) @@ -800,7 +800,7 @@ class MATERIAL_PT_transp_game(MaterialButtonsPanel, bpy.types.Panel): row = layout.row() row.active = mat.use_transparency row.prop(mat, "transparency_method", expand=True) - + layout.prop(mat, "alpha") @@ -897,7 +897,7 @@ class MATERIAL_PT_volume_lighting(VolumeButtonsPanel, bpy.types.Panel): class MATERIAL_PT_volume_transp(VolumeButtonsPanel, bpy.types.Panel): bl_label = "Transparency" COMPAT_ENGINES = {'BLENDER_RENDER'} - + @classmethod def poll(cls, context): mat = context.material |