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:
authorCampbell Barton <ideasman42@gmail.com>2010-10-23 05:44:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-10-23 05:44:33 +0400
commit68b9fef91ce0dab7982c1b578ded821aa955a92b (patch)
treec5b0e91b89f77f3bf8e67cfc2dc0f42999607805 /io_mesh_raw
parent3e35db6cb03c03fd6785cc1d162005ee2a57bfd6 (diff)
bugfix [#24338] All Expoter is not displayed.
Diffstat (limited to 'io_mesh_raw')
-rw-r--r--io_mesh_raw/export_raw.py2
-rw-r--r--io_mesh_raw/import_raw.py5
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)