]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mesh_mspgl/export_mspgl.py
Adapt exporter to Blender 2.63
[libs/gl.git] / blender / io_mesh_mspgl / export_mspgl.py
index 1d7062e68eaa2d5bdca07d500a87549965b953e6..5a1bbe1130be97b39acaf49c067679da4798f070 100644 (file)
@@ -248,15 +248,15 @@ class Exporter:
                        mesh.generate_material_uv()
 
                texunits = []
-               if mesh.uv_textures and self.export_uv!="NONE":
+               if mesh.uv_layers and self.export_uv!="NONE":
                        if self.export_uv=="UNIT0":
                                texunits = [0]
                        else:
-                               texunits = list(range(len(mesh.uv_textures)))
+                               texunits = list(range(len(mesh.uv_layers)))
 
                        tbn_unit = 0
                        if self.tbn_vecs:
-                               uvtex_names = [u.name for u in mesh.uv_textures]
+                               uvtex_names = [u.name for u in mesh.uv_layers]
                                if self.tbn_uvtex in uvtex_names:
                                        tbn_unit = uvtex_names.index(uvtex)
                                        del texunits[tbn_unit]
@@ -293,7 +293,7 @@ class Exporter:
                fmt += "_VERTEX3"
                out_file.begin("vertices", fmt)
                normal = None
-               uvs = [None]*len(mesh.uv_textures)
+               uvs = [None]*len(mesh.uv_layers)
                tan = None
                bino = None
                for v in mesh.vertices: