Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_mesh_raw')
-rw-r--r--io_mesh_raw/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/io_mesh_raw/__init__.py b/io_mesh_raw/__init__.py
index 8a1569bc..1af09c9f 100644
--- a/io_mesh_raw/__init__.py
+++ b/io_mesh_raw/__init__.py
@@ -40,7 +40,8 @@ def menu_import(self, context):
def menu_export(self, context):
from io_mesh_raw import export_raw
- default_path = bpy.data.filepath.replace(".blend", ".raw")
+ import os
+ default_path = os.path.splitext(bpy.data.filepath)[0] + ".raw"
self.layout.operator(export_raw.RawExporter.bl_idname, text="Raw Faces (.raw)").filepath = default_path