Revision: 26399
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26399
Author:   campbellbarton
Date:     2010-01-29 16:20:25 +0100 (Fri, 29 Jan 2010)

Log Message:
-----------
minor corrections to scripts

Modified Paths:
--------------
    trunk/blender/release/scripts/op/uv.py
    trunk/blender/release/scripts/op/uvcalc_follow_active.py

Modified: trunk/blender/release/scripts/op/uv.py
===================================================================
--- trunk/blender/release/scripts/op/uv.py      2010-01-29 15:19:19 UTC (rev 
26398)
+++ trunk/blender/release/scripts/op/uv.py      2010-01-29 15:20:25 UTC (rev 
26399)
@@ -34,8 +34,8 @@
     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 @@
         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 @@
         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

Modified: trunk/blender/release/scripts/op/uvcalc_follow_active.py
===================================================================
--- trunk/blender/release/scripts/op/uvcalc_follow_active.py    2010-01-29 
15:19:19 UTC (rev 26398)
+++ trunk/blender/release/scripts/op/uvcalc_follow_active.py    2010-01-29 
15:20:25 UTC (rev 26399)
@@ -246,7 +246,7 @@
     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")


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to