From 7df93e6dadf8388657d36c64ca2f2ed92703b072 Mon Sep 17 00:00:00 2001 From: Chris Foster <cdbfoster@gmail.com> Date: Mon, 19 Jul 2010 16:47:58 +0000 Subject: [PATCH] Changed a "filename" attribute to "filepath". I guess I missed one. Oops. --- io_export_directx_x.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/io_export_directx_x.py b/io_export_directx_x.py index c71b63a14..f7a40b1aa 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 -- GitLab