[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [809] trunk/py/scripts/addons/ io_export_directx_x.py: Changed a "filename" attribute to "filepath".

Chris Foster cdbfoster at gmail.com
Mon Jul 19 18:47:58 CEST 2010


Revision: 809
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=809
Author:   kiravakaan
Date:     2010-07-19 18:47:58 +0200 (Mon, 19 Jul 2010)

Log Message:
-----------
Changed a "filename" attribute to "filepath".  I guess I missed one. Oops.

Modified Paths:
--------------
    trunk/py/scripts/addons/io_export_directx_x.py

Modified: trunk/py/scripts/addons/io_export_directx_x.py
===================================================================
--- trunk/py/scripts/addons/io_export_directx_x.py	2010-07-18 01:12:39 UTC (rev 808)
+++ trunk/py/scripts/addons/io_export_directx_x.py	2010-07-19 16:47:58 UTC (rev 809)
@@ -21,8 +21,7 @@
     '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 @@
         #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




More information about the Bf-extensions-cvs mailing list