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>2010-01-29 18:20:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-29 18:20:25 +0300
commit27f715052a6d2c623cfdc19ebe4dd051e0a0aa06 (patch)
treebd31aa310d72d8b8499fa9e6a2af34c08d496547 /release
parente85a0234803b773e165222c4eacfd4077afdb7a9 (diff)
minor corrections to scripts
Diffstat (limited to 'release')
-rw-r--r--release/scripts/op/uv.py12
-rw-r--r--release/scripts/op/uvcalc_follow_active.py2
2 files changed, 7 insertions, 7 deletions
diff --git a/release/scripts/op/uv.py b/release/scripts/op/uv.py
index 76675cb96a9..dd2d6d4a00f 100644
--- a/release/scripts/op/uv.py
+++ b/release/scripts/op/uv.py
@@ -34,8 +34,8 @@ class ExportUVLayout(bpy.types.Operator):
only_selected = BoolProperty(name="Only Selected", description="Export Only the selected UVs", default=False)
def poll(self, context):
- ob = context.active_object
- return (ob and ob.type == 'MESH')
+ obj = context.active_object
+ return (obj and obj.type == 'MESH')
def _image_size(self, context, default_width=1024, default_height=1024):
# fallback if not in image context.
@@ -57,14 +57,14 @@ class ExportUVLayout(bpy.types.Operator):
from xml.sax.saxutils import escape
from os.path import basename
- ob = context.active_object
- is_editmode = (ob.mode == 'EDIT')
+ obj = context.active_object
+ is_editmode = (obj.mode == 'EDIT')
if is_editmode:
bpy.ops.object.mode_set(mode='OBJECT', toggle=False)
image_width, image_height = self._image_size(context)
- mesh = ob.data
+ mesh = obj.data
active_uv_layer = None
for lay in mesh.uv_textures:
@@ -89,7 +89,7 @@ class ExportUVLayout(bpy.types.Operator):
fw('<svg width="%dpx" height="%dpx" viewBox="0px 0px %dpx %dpx"\n' % (image_width, image_height, image_width, image_height))
fw(' xmlns="http://www.w3.org/2000/svg" version="1.1">\n')
- desc = "%s, %s, %s (Blender %s)" % (basename(bpy.data.filename), ob.name, mesh.name, bpy.app.version_string)
+ desc = "%s, %s, %s (Blender %s)" % (basename(bpy.data.filename), obj.name, mesh.name, bpy.app.version_string)
fw('<desc>%s</desc>\n' % escape(desc))
# svg colors
diff --git a/release/scripts/op/uvcalc_follow_active.py b/release/scripts/op/uvcalc_follow_active.py
index 41f97f9cca5..ec68b00caed 100644
--- a/release/scripts/op/uvcalc_follow_active.py
+++ b/release/scripts/op/uvcalc_follow_active.py
@@ -246,7 +246,7 @@ class FollowActiveQuads(bpy.types.Operator):
bl_register = True
bl_undo = True
- mode = bpy.props.EnumProperty(items=(("EVEN", "Client", "Space all UVs evently"), ("LENGTH", "Length", "Average space UVs edge length of each loop.")),
+ mode = bpy.props.EnumProperty(items=(("EVEN", "Even", "Space all UVs evently"), ("LENGTH", "Length", "Average space UVs edge length of each loop.")),
name="Edge Length Mode",
description="Method to space UV edge loops",
default="LENGTH")