diff options
Diffstat (limited to 'release/scripts/io/export_mdd.py')
-rw-r--r-- | release/scripts/io/export_mdd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/io/export_mdd.py b/release/scripts/io/export_mdd.py index b7de707c9f0..d2e53070910 100644 --- a/release/scripts/io/export_mdd.py +++ b/release/scripts/io/export_mdd.py @@ -183,7 +183,8 @@ class ExportMDD(bpy.types.Operator): def menu_func(self, context): - default_path = bpy.data.filepath.replace(".blend", ".mdd") + import os + default_path = os.path.splitext(bpy.data.filepath)[0] + ".mdd" self.layout.operator(ExportMDD.bl_idname, text="Lightwave Point Cache (.mdd)").filepath = default_path |