diff options
Diffstat (limited to 'release/scripts/op/uv.py')
-rw-r--r-- | release/scripts/op/uv.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/op/uv.py b/release/scripts/op/uv.py index b9bc54bf264..51c1695677b 100644 --- a/release/scripts/op/uv.py +++ b/release/scripts/op/uv.py @@ -210,7 +210,8 @@ class ExportUVLayout(bpy.types.Operator): def menu_func(self, context): - default_path = bpy.data.filepath.replace(".blend", ".svg") + import os + default_path = os.path.splitext(bpy.data.filepath)[0] + ".svg" self.layout.operator(ExportUVLayout.bl_idname).filepath = default_path |