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 | |
parent | 24685d39670b28fad4a4f28fe43b8cbd04fb3c2e (diff) |
pep8 cleanup
Diffstat (limited to 'release/scripts/ui')
-rw-r--r-- | release/scripts/ui/properties_material.py | 16 | ||||
-rw-r--r-- | release/scripts/ui/space_image.py | 24 |
2 files changed, 20 insertions, 20 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 diff --git a/release/scripts/ui/space_image.py b/release/scripts/ui/space_image.py index 8220508d4aa..c0ef692a2d0 100644 --- a/release/scripts/ui/space_image.py +++ b/release/scripts/ui/space_image.py @@ -157,24 +157,24 @@ class IMAGE_MT_image_invert(bpy.types.Menu): def draw(self, context): layout = self.layout - op = layout.operator("image.invert", text="Invert Image Colors"); - op.invert_r = True; - op.invert_g = True; - op.invert_b = True; + op = layout.operator("image.invert", text="Invert Image Colors") + op.invert_r = True + op.invert_g = True + op.invert_b = True layout.separator() - op = layout.operator("image.invert", text="Invert Red Channel"); - op.invert_r = True; + op = layout.operator("image.invert", text="Invert Red Channel") + op.invert_r = True - op = layout.operator("image.invert", text="Invert Green Channel"); - op.invert_g = True; + op = layout.operator("image.invert", text="Invert Green Channel") + op.invert_g = True - op = layout.operator("image.invert", text="Invert Blue Channel"); - op.invert_b = True; + op = layout.operator("image.invert", text="Invert Blue Channel") + op.invert_b = True - op = layout.operator("image.invert", text="Invert Alpha Channel"); - op.invert_a = True; + op = layout.operator("image.invert", text="Invert Alpha Channel") + op.invert_a = True class IMAGE_MT_uvs_showhide(bpy.types.Menu): |