texture.imageFlags|=Blender.Texture.ImageFlags.USEALPHA
return texture, image
+ @staticmethod
+ def getPath(t):
+ image=t.getImage()
+ if image:
+ return image.getFilename()
+
class material:
@staticmethod
def addMaterial(m, material):
m.materials+=[material]
+ @staticmethod
+ def getMaterial(m, index):
+ return m.materials[index]
+
class vertex:
@staticmethod