diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-29 02:37:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-29 02:37:56 +0300 |
commit | 8b897879cd3925f701708e30710534aa5d0ae616 (patch) | |
tree | 69dc22e5be7f03d5196568b3ac810de27814670b /release/scripts/ui/space_image.py | |
parent | 98a7a11e556e020265c4ca8d54e9609e9e86631c (diff) |
pep8 cleanup in ui and op dirs, added popup to select pattern
Diffstat (limited to 'release/scripts/ui/space_image.py')
-rw-r--r-- | release/scripts/ui/space_image.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/release/scripts/ui/space_image.py b/release/scripts/ui/space_image.py index 44a90c084d0..32c5dbb9375 100644 --- a/release/scripts/ui/space_image.py +++ b/release/scripts/ui/space_image.py @@ -149,14 +149,15 @@ class IMAGE_MT_uvs_transform(bpy.types.Menu): layout.operator("tfm.translate") layout.operator("tfm.rotate") layout.operator("tfm.resize") - + + class IMAGE_MT_uvs_snap(bpy.types.Menu): bl_label = "Snap" - def draw(self, context): + def draw(self, context): layout = self.layout layout.operator_context = 'EXEC_REGION_WIN' - + layout.operator("uv.snap_selection", text="Selected to Pixels").target = 'PIXELS' layout.operator("uv.snap_selection", text="Selected to Cursor").target = 'CURSOR' layout.operator("uv.snap_selection", text="Selected to Adjacent Unselected").target = 'ADJACENT_UNSELECTED' @@ -166,6 +167,7 @@ class IMAGE_MT_uvs_snap(bpy.types.Menu): layout.operator("uv.snap_cursor", text="Cursor to Pixels").target = 'PIXELS' layout.operator("uv.snap_cursor", text="Cursor to Selection").target = 'SELECTION' + class IMAGE_MT_uvs_mirror(bpy.types.Menu): bl_label = "Mirror" |