diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-14 17:33:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-14 17:33:05 +0300 |
commit | dd9b6cbdddc5dd502256baf13c104c40d3c05f60 (patch) | |
tree | 34fce00903f3fdf63288125f8881c22dc3c9ccb5 /release/scripts/op | |
parent | f8518a9b26f96a391f20b671331e3365f7f6a69b (diff) |
uv layout svg files were not importing into inkscape or firefox (gimp worked)
Diffstat (limited to 'release/scripts/op')
-rw-r--r-- | release/scripts/op/uv.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/op/uv.py b/release/scripts/op/uv.py index 00b65c38088..476d3ab44c3 100644 --- a/release/scripts/op/uv.py +++ b/release/scripts/op/uv.py @@ -111,7 +111,7 @@ class ExportUVLayout(bpy.types.Operator): for j, uv in enumerate(uvs): x, y = uv.x, 1.0 - uv.y - fw('%f.3f,%f.3f ' % (x * image_width, y * image_height)) + fw('%.3f,%.3f ' % (x * image_width, y * image_height)) fw('" />\n') fw('\n') fw('</svg>\n') @@ -130,7 +130,7 @@ class ExportUVLayout(bpy.types.Operator): bpy.types.register(ExportUVLayout) def menu_func(self, context): - default_path = bpy.data.filename.replace(".blend", "_%s.svg" % bpy.utils.clean_name(getattr(context.object, "name", "none"))) + default_path = bpy.data.filename.replace(".blend", ".svg") self.layout.operator(ExportUVLayout.bl_idname).path = default_path bpy.types.IMAGE_MT_uvs.append(menu_func) |