From bc5f97c15bf51fcc74278ee4c01e9f1e6f07b0de Mon Sep 17 00:00:00 2001
From: Chris Foster <cdbfoster@gmail.com>
Date: Fri, 26 Aug 2011 17:37:49 +0000
Subject: [PATCH] - Small fix to strip spaces from names as well.

---
 io_export_directx_x.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io_export_directx_x.py b/io_export_directx_x.py
index 76a60d425..1e521d00d 100644
--- a/io_export_directx_x.py
+++ b/io_export_directx_x.py
@@ -74,7 +74,7 @@ def LegalName(Name):
     
     import string
     
-    NewName = ReplaceSet(Name, string.punctuation, "_")
+    NewName = ReplaceSet(Name, string.punctuation + " ", "_")
     if NewName[0].isdigit() or NewName in ["ARRAY",
                                            "DWORD",
                                            "UCHAR",
-- 
GitLab