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-07-14 15:58:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-14 15:58:19 +0400
commit80355fd456cbdb87d0b88a668796d68a0b66c0b2 (patch)
treef6a5001d87768377b8847a8f5fc2a4df830ee591 /release/scripts/io/export_ply.py
parentfef943873c0b778ce9c372768399d9e706e49a62 (diff)
bugfix [#22843] Cannot export to folder with ".blend" on the end.
Diffstat (limited to 'release/scripts/io/export_ply.py')
-rw-r--r--release/scripts/io/export_ply.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/io/export_ply.py b/release/scripts/io/export_ply.py
index 09d25b61010..0b936bdceb2 100644
--- a/release/scripts/io/export_ply.py
+++ b/release/scripts/io/export_ply.py
@@ -310,7 +310,8 @@ class ExportPLY(bpy.types.Operator):
def menu_func(self, context):
- default_path = bpy.data.filepath.replace(".blend", ".ply")
+ import os
+ default_path = os.path.splitext(bpy.data.filepath)[0] + ".ply"
self.layout.operator(ExportPLY.bl_idname, text="Stanford (.ply)").filepath = default_path