From 95f81072ca441fe1823ad13f9774ac0b5962979d Mon Sep 17 00:00:00 2001
From: Brendon Murphy <meta.androcto1@gmail.com>
Date: Mon, 26 Jul 2010 08:04:24 +0000
Subject: [PATCH] applied patch to repair scripts, thanks DustyDingo for
 reporting.

---
 io_mesh_raw/export_raw.py | 2 +-
 io_mesh_raw/import_raw.py | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/io_mesh_raw/export_raw.py b/io_mesh_raw/export_raw.py
index 59f838104..323f84f6c 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 df04df9b4..2eea174d2 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):
 
-- 
GitLab