diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-21 17:27:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-21 17:59:43 +0300 |
commit | 4ebb64697a715fde3232862d8f341a9ce67ba028 (patch) | |
tree | eb62ecbe9f3719cc5d66cdb65fa8b438a19eae44 /release/scripts/startup/bl_ui/space_image.py | |
parent | dfb2db10a0e9e904c0f27ffc578a6dcdfdd67092 (diff) |
Cleanup: pep8
Diffstat (limited to 'release/scripts/startup/bl_ui/space_image.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_image.py | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index ea698f56ad4..62d7240a188 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -493,17 +493,41 @@ class IMAGE_MT_uvs_snap_pie(Menu): layout.operator_context = 'EXEC_REGION_WIN' - pie.operator("uv.snap_selected", text="Selected to Pixels", icon='RESTRICT_SELECT_OFF').target = 'PIXELS' - pie.operator("uv.snap_cursor", text="Cursor to Pixels", icon='PIVOT_CURSOR').target = 'PIXELS' - pie.operator("uv.snap_cursor", text="Cursor to Selected", icon='PIVOT_CURSOR').target = 'SELECTED' - pie.operator("uv.snap_selected", text="Selected to Cursor", icon='RESTRICT_SELECT_OFF').target = 'CURSOR' - pie.operator("uv.snap_selected", text="Selected to Cursor (Offset)", icon='RESTRICT_SELECT_OFF').target = 'CURSOR_OFFSET' - pie.operator("uv.snap_selected", text="Selected to Adjacent Unselected", icon='RESTRICT_SELECT_OFF').target = 'ADJACENT_UNSELECTED' + pie.operator( + "uv.snap_selected", + text="Selected to Pixels", + icon='RESTRICT_SELECT_OFF', + ).target = 'PIXELS' + pie.operator( + "uv.snap_cursor", + text="Cursor to Pixels", + icon='PIVOT_CURSOR', + ).target = 'PIXELS' + pie.operator( + "uv.snap_cursor", + text="Cursor to Selected", + icon='PIVOT_CURSOR', + ).target = 'SELECTED' + pie.operator( + "uv.snap_selected", + text="Selected to Cursor", + icon='RESTRICT_SELECT_OFF', + ).target = 'CURSOR' + pie.operator( + "uv.snap_selected", + text="Selected to Cursor (Offset)", + icon='RESTRICT_SELECT_OFF', + ).target = 'CURSOR_OFFSET' + pie.operator( + "uv.snap_selected", + text="Selected to Adjacent Unselected", + icon='RESTRICT_SELECT_OFF', + ).target = 'ADJACENT_UNSELECTED' class IMAGE_HT_tool_header(Header): bl_space_type = 'IMAGE_EDITOR' - bl_region_type = "TOOL_HEADER" + bl_region_type = 'TOOL_HEADER' def draw(self, context): layout = self.layout @@ -544,7 +568,12 @@ class IMAGE_HT_tool_header(Header): if tool_mode == 'PAINT': if (tool is not None) and tool.has_datablock: - layout.popover_group(space_type='IMAGE_EDITOR', region_type='UI', context=".paint_common_2d", category="") + layout.popover_group( + space_type='IMAGE_EDITOR', + region_type='UI', + context=".paint_common_2d", + category="", + ) elif tool_mode == 'UV': if (tool is not None) and tool.has_datablock: layout.popover_group(space_type='IMAGE_EDITOR', region_type='UI', context=".uv_sculpt", category="") @@ -1450,7 +1479,6 @@ class IMAGE_PT_uv_sculpt_curve(Panel): row.operator("brush.curve_preset", icon='NOCURVE', text="").shape = 'MAX' - class ImageScopesPanel: @classmethod def poll(cls, context): |