diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-29 09:32:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-29 09:32:27 +0400 |
commit | 2cdb79239bdec497781baf7fe8309cf4b1a36308 (patch) | |
tree | ab7c687a86daa2c1ce3e5c6c020ae7408161c66a /release | |
parent | 1a7a623c567e839fb1daf3e72163d7712e6f3a5f (diff) |
fix [#27199] Copy Mirrored UV Coords missing the reverse option
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/mesh.py | 12 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_image.py | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/mesh.py b/release/scripts/startup/bl_operators/mesh.py index a37a83f0f09..44d81ba53df 100644 --- a/release/scripts/startup/bl_operators/mesh.py +++ b/release/scripts/startup/bl_operators/mesh.py @@ -20,6 +20,8 @@ import bpy +from bpy.props import EnumProperty + class MeshSelectInteriorFaces(bpy.types.Operator): '''Select faces where all edges have more then 2 face users.''' @@ -66,17 +68,23 @@ class MeshSelectInteriorFaces(bpy.types.Operator): class MeshMirrorUV(bpy.types.Operator): '''Copy mirror UV coordinates on the X axis based on a mirrored mesh''' - bl_idname = "mesh.faces_miror_uv" + bl_idname = "mesh.faces_mirror_uv" bl_label = "Copy Mirrored UV coords" bl_options = {'REGISTER', 'UNDO'} + direction = EnumProperty(items=( + ('POSITIVE', "Positive", ""), + ('NEGATIVE', "Negative", "")), + name="Axis Direction", + description="") + @classmethod def poll(cls, context): ob = context.active_object return (ob and ob.type == 'MESH') def execute(self, context): - DIR = 1 # TODO, make an option + DIR = (self.direction == 'NEGATIVE') from mathutils import Vector diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index f3b78de813c..bd8d9db2cd5 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -263,7 +263,7 @@ class IMAGE_MT_uvs(bpy.types.Menu): layout.operator("uv.average_islands_scale") layout.operator("uv.minimize_stretch") layout.operator("uv.stitch") - layout.operator("mesh.faces_miror_uv") + layout.operator("mesh.faces_mirror_uv") layout.separator() |