diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-07-24 18:30:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-07-24 18:30:13 +0300 |
commit | 5bf39c3cfb72f7b1b79c847ac9f6f0804f813868 (patch) | |
tree | 613e3a6edcc7a62c914c5e1c5a1aff0a5b05d021 /space_view3d_brush_menus | |
parent | c992b17be98e245d1d2c7a7ecb557241e10b6f32 (diff) |
Cleanup: trailing spaces
Diffstat (limited to 'space_view3d_brush_menus')
-rw-r--r-- | space_view3d_brush_menus/brush_menu.py | 6 | ||||
-rw-r--r-- | space_view3d_brush_menus/stroke_menu.py | 24 |
2 files changed, 15 insertions, 15 deletions
diff --git a/space_view3d_brush_menus/brush_menu.py b/space_view3d_brush_menus/brush_menu.py index 4568c225..53df3b81 100644 --- a/space_view3d_brush_menus/brush_menu.py +++ b/space_view3d_brush_menus/brush_menu.py @@ -286,17 +286,17 @@ class BrushModeMenu(Menu): enum = has_brush.bl_rna.properties['sculpt_plane'].enum_items if \ has_brush else None path = "tool_settings.sculpt.brush.sculpt_plane" - + elif mode == 'VERTEX_PAINT': enum = has_brush.bl_rna.properties['vertex_tool'].enum_items if \ has_brush else None path = "tool_settings.vertex_paint.brush.vertex_tool" - + elif mode == 'WEIGHT_PAINT': enum = has_brush.bl_rna.properties['vertex_tool'].enum_items if \ has_brush else None path = "tool_settings.weight_paint.brush.vertex_tool" - + elif mode == 'TEXTURE_PAINT': enum = has_brush.bl_rna.properties['blend'].enum_items if \ has_brush else None diff --git a/space_view3d_brush_menus/stroke_menu.py b/space_view3d_brush_menus/stroke_menu.py index 258056e7..1e7c067c 100644 --- a/space_view3d_brush_menus/stroke_menu.py +++ b/space_view3d_brush_menus/stroke_menu.py @@ -15,17 +15,17 @@ class PaintCurvesMenu(Menu): mode = utils_core.get_mode() layout = self.layout colum_n = utils_core.addon_settings(lists=False) - + layout.row().label(text="Paint Curves") layout.row().separator() has_brush = utils_core.get_brush_link(context, types="brush") - - has_current_curve = has_brush.paint_curve if has_brush else None + + has_current_curve = has_brush.paint_curve if has_brush else None current_curve = has_current_curve.name if has_current_curve else '' - + column_flow = layout.column_flow(columns=colum_n) - + if len(bpy.data.paint_curves) != 0: for x, item in enumerate(bpy.data.paint_curves): utils_core.menuprop( @@ -84,7 +84,7 @@ class StrokeOptionsMenu(Menu): layout.row().separator() if stroke_method: - + if stroke_method in ('SPACE', 'LINE') and brush: layout.row().prop(brush, "spacing", text=utils_core.PIW + "Spacing", slider=True) @@ -95,18 +95,18 @@ class StrokeOptionsMenu(Menu): elif stroke_method == 'ANCHORED' and brush: layout.row().prop(brush, "use_edge_to_edge") - + elif stroke_method == 'CURVE' and brush: - has_current_curve = brush.paint_curve if brush else None + has_current_curve = brush.paint_curve if brush else None current_curve = has_current_curve.name if has_current_curve else 'No Curve Selected' - - layout.row().menu(PaintCurvesMenu.bl_idname, text=current_curve, + + layout.row().menu(PaintCurvesMenu.bl_idname, text=current_curve, icon='CURVE_BEZCURVE') layout.row().operator("paintcurve.new", icon='ZOOMIN') layout.row().operator("paintcurve.draw") - + layout.row().separator() - + layout.row().prop(brush, "spacing", text=utils_core.PIW + "Spacing", slider=True) |