diff --git a/io_mesh_raw/export_raw.py b/io_mesh_raw/export_raw.py index 59f8381041ce4c456b8efaa8ad599ac84be0afcc..323f84f6c03fcd5653808d9562f9d77fbde941e8 100644 --- a/io_mesh_raw/export_raw.py +++ b/io_mesh_raw/export_raw.py @@ -68,7 +68,7 @@ def export_raw(filepath, applyMods, triangulate): matrix = obj.matrix_world if (applyMods): - me = obj.create_mesh(True, "PREVIEW") + me = obj.create_mesh(bpy.context.scene, True, "PREVIEW") else: me = obj.data diff --git a/io_mesh_raw/import_raw.py b/io_mesh_raw/import_raw.py index df04df9b4c7677f6b4d3391e4d22b0a6e2f7a890..2eea174d2fddedb90e2ee54807b65512acf680ff 100644 --- a/io_mesh_raw/import_raw.py +++ b/io_mesh_raw/import_raw.py @@ -120,6 +120,7 @@ class RawImporter(bpy.types.Operator): 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.") def execute(self, context):