[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25999] trunk/blender/release/scripts/op/ uv.py: UV layout
Campbell Barton
ideasman42 at gmail.com
Thu Jan 14 15:26:39 CET 2010
Revision: 25999
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25999
Author: campbellbarton
Date: 2010-01-14 15:26:39 +0100 (Thu, 14 Jan 2010)
Log Message:
-----------
UV layout
- set the width of the line to be 1 pixel
- add the object name onto the blendfile name.
Modified Paths:
--------------
trunk/blender/release/scripts/op/uv.py
Modified: trunk/blender/release/scripts/op/uv.py
===================================================================
--- trunk/blender/release/scripts/op/uv.py 2010-01-14 14:06:27 UTC (rev 25998)
+++ trunk/blender/release/scripts/op/uv.py 2010-01-14 14:26:39 UTC (rev 25999)
@@ -106,7 +106,7 @@
else:
uvs = uv.uv1, uv.uv2, uv.uv3, uv.uv4
- fw('<polygon %s fill-opacity="0.5" stroke="black" stroke-width="1" \n' % fill_settings[faces[i].material_index])
+ fw('<polygon %s fill-opacity="0.5" stroke="black" stroke-width="1px" \n' % fill_settings[faces[i].material_index])
fw(' points="')
for j, uv in enumerate(uvs):
@@ -130,7 +130,7 @@
bpy.types.register(ExportUVLayout)
def menu_func(self, context):
- default_path = bpy.data.filename.replace(".blend", ".svg")
+ default_path = bpy.data.filename.replace(".blend", "_%s.svg" % bpy.utils.clean_name(getattr(context.object, "name", "none")))
self.layout.operator(ExportUVLayout.bl_idname).path = default_path
bpy.types.IMAGE_MT_uvs.append(menu_func)
More information about the Bf-blender-cvs
mailing list