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>2011-04-29 09:32:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-29 09:32:27 +0400
commit2cdb79239bdec497781baf7fe8309cf4b1a36308 (patch)
treeab7c687a86daa2c1ce3e5c6c020ae7408161c66a /release/scripts/startup/bl_operators/mesh.py
parent1a7a623c567e839fb1daf3e72163d7712e6f3a5f (diff)
fix [#27199] Copy Mirrored UV Coords missing the reverse option
Diffstat (limited to 'release/scripts/startup/bl_operators/mesh.py')
-rw-r--r--release/scripts/startup/bl_operators/mesh.py12
1 files changed, 10 insertions, 2 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