diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-01-27 07:58:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-01-27 07:58:09 +0300 |
commit | 8f075f9518c8173523e3726b436fa02de6fea994 (patch) | |
tree | a32c7b56c76132e2ecc4a84bac8913bd8d1ef4e0 /release/scripts/DirectX8Importer.py | |
parent | 853785782e5fea7805b05ce834a661271fd24358 (diff) |
minor tweaks from testing scripts. correction in my last commit.
Diffstat (limited to 'release/scripts/DirectX8Importer.py')
-rw-r--r-- | release/scripts/DirectX8Importer.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/DirectX8Importer.py b/release/scripts/DirectX8Importer.py index b8ab465b26d..4db533e96fc 100644 --- a/release/scripts/DirectX8Importer.py +++ b/release/scripts/DirectX8Importer.py @@ -300,10 +300,12 @@ class xImport: # MAIN #------------------------------------------------------------------ def my_callback(filename): - if not filename.find('.x', -2): print "Not an .x file" + if not filename.lower().endswith('.x'): print "Not an .x file" ximport = xImport(filename) ximport.Import() arg = __script__['arg'] -Blender.Window.FileSelector(my_callback, "Import DirectX") + +if __name__ == '__main__': + Blender.Window.FileSelector(my_callback, "Import DirectX", "*.x")
\ No newline at end of file |