OSDN Git Service

fix bl24 encoding.
[meshio/meshio.git] / swig / blender / bl25.py
index 3cfd60c..c297838 100755 (executable)
@@ -301,10 +301,7 @@ class material:
         return material.texture_slots[0]
 
     @staticmethod
-    def getTexturePath(m, dirname):
-        tex=""
-        aplane=""
-        # texture
+    def eachTexturePath(m):
         for slot in m.texture_slots:
             if slot and slot.texture:
                 texture=slot.texture
@@ -312,18 +309,7 @@ class material:
                     image=texture.image
                     if not image:
                         continue
-                    imagePath=image.filename
-                    if len(dirname)>0 and imagePath.startswith(dirname):
-                        # \e$BAjBP%Q%9$KJQ49$9$k\e(B
-                        imagePath=imagePath[len(dirname)+1:len(imagePath)]
-                    #imagePath=Blender.sys.expandpath(
-                    #        imagePath).replace("\\", '/')
-                    if slot.map_colordiff:
-                        tex=" tex(\"%s\")" % imagePath
-                    elif slot.map_alpha:
-                        aplane=" aplane(\"%s\")" % imagePath
-        return tex, aplane
-
+                    yield image.filename
 
 class mesh:
     @staticmethod