Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-29 02:37:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-29 02:37:56 +0300
commit8b897879cd3925f701708e30710534aa5d0ae616 (patch)
tree69dc22e5be7f03d5196568b3ac810de27814670b /release/scripts/ui/space_image.py
parent98a7a11e556e020265c4ca8d54e9609e9e86631c (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.py8
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"