diff options
Diffstat (limited to 'io_mesh_raw')
-rw-r--r-- | io_mesh_raw/export_raw.py | 2 | ||||
-rw-r--r-- | io_mesh_raw/import_raw.py | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/io_mesh_raw/export_raw.py b/io_mesh_raw/export_raw.py index 59881564..6057a7c6 100644 --- a/io_mesh_raw/export_raw.py +++ b/io_mesh_raw/export_raw.py @@ -94,7 +94,7 @@ class RawExporter(bpy.types.Operator): bl_idname = "export_mesh.raw" bl_label = "Export RAW" - filepath = StringProperty(name="File Path", description="Filepath used for exporting the RAW file", maxlen= 1024, default= "") + filepath = StringProperty(name="File Path", description="Filepath used for exporting the RAW file", maxlen= 1024, default= "", subtype='FILE_PATH') check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'}) apply_modifiers = BoolProperty(name="Apply Modifiers", description="Use transformed mesh data from each object", default=True) diff --git a/io_mesh_raw/import_raw.py b/io_mesh_raw/import_raw.py index 54adfade..2b5cf0e1 100644 --- a/io_mesh_raw/import_raw.py +++ b/io_mesh_raw/import_raw.py @@ -122,13 +122,12 @@ class RawImporter(bpy.types.Operator): bl_idname = "import_mesh.raw" bl_label = "Import RAW" - filepath = StringProperty(name="File Path", description="Filepath used for importing the RAW file", maxlen=1024, default="") - filename = StringProperty(name="File Name", description="Name of the file.") + filepath = StringProperty(name="File Path", description="Filepath used for importing the RAW file", maxlen=1024, default="", subtype='FILE_PATH') def execute(self, context): #convert the filename to an object name - objName = bpy.path.display_name(self.filename) + objName = bpy.path.display_name(self.filename.split("\\")[-1].split("/")[-1]) mesh = readMesh(self.filepath, objName) addMeshObj(mesh, objName) |