continue
yield image.getFilename()
+ @staticmethod
+ def eachEnalbeTexturePath(m, dirname):
+ for i, texture in enumerate(m.getTextures()):
+ if (i in m.enabledTextures) and texture and texture.tex and texture.tex.getImage():
+ image=texture.tex.getImage()
+ if not image:
+ continue
+ yield image.getFilename()
+
class mesh:
@staticmethod
class vertex:
@staticmethod
- def setNormal(mvert, normal):
- mvert.no=Mathutils.Vector(*normal)
+ def getNormal(v):
+ return v.no
+
+ @staticmethod
+ def setNormal(v, normal):
+ v.no=Mathutils.Vector(*normal)
@staticmethod
- def setUv(mvert, uv):
- mvert.uvco=uv
+ def setUv(v, uv):
+ v.uvco=uv
class face: