diff options
author | Chris Foster <cdbfoster@gmail.com> | 2010-07-19 20:47:58 +0400 |
---|---|---|
committer | Chris Foster <cdbfoster@gmail.com> | 2010-07-19 20:47:58 +0400 |
commit | 7df93e6dadf8388657d36c64ca2f2ed92703b072 (patch) | |
tree | 9316509a3b2788364bd671c746d4bcedbe5bf1bd | |
parent | 8a1b3671971e5ac7a938a77571ac8e2afcc2879e (diff) |
Changed a "filename" attribute to "filepath". I guess I missed one. Oops.
-rw-r--r-- | io_export_directx_x.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/io_export_directx_x.py b/io_export_directx_x.py index c71b63a1..f7a40b1a 100644 --- a/io_export_directx_x.py +++ b/io_export_directx_x.py @@ -21,8 +21,7 @@ bl_addon_info = { 'version': '1.2', 'blender': (2, 5, 3), 'location': 'File > Export', - 'description': 'Export to the DirectX Model Format (.x)', - 'warning': '', # used for warning icon and text in addons panel + 'description': 'Export to the DirectX Model Format', 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ 'Scripts/File_I-O/DirectX_Exporter', 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ @@ -181,7 +180,7 @@ def GetMaterialTexture(Material): #Create a list of Textures that have type "IMAGE" ImageTextures = [Material.texture_slots[TextureSlot].texture for TextureSlot in Material.texture_slots.keys() if Material.texture_slots[TextureSlot].texture.type == "IMAGE"] #Refine a new list with only image textures that have a file source - ImageFiles = [os.path.basename(Texture.image.filename) for Texture in ImageTextures if Texture.image.source == "FILE"] + ImageFiles = [os.path.basename(Texture.image.filepath) for Texture in ImageTextures if Texture.image.source == "FILE"] if ImageFiles: return ImageFiles[0] return None |