]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_mesh.py
Fix an incorrect variable in the mesh exporter
[libs/gl.git] / blender / io_mspgl / export_mesh.py
index 1652c1a494756eec3c772718b01897297046e444..c37d60ca8f7581e4df57b78483b7458465f7f8e5 100644 (file)
@@ -83,7 +83,7 @@ class MeshExporter:
                                        face = queue.pop(0)
                                        island.append(face)
 
-                                       for n in f.get_neighbors():
+                                       for n in face.get_neighbors():
                                                if not n.flag:
                                                        n.flag = True
                                                        queue.append(n)
@@ -195,7 +195,7 @@ class MeshExporter:
 
        def export(self, context, out_file, objs=None, progress=None):
                if objs:
-                       objs = [(o, mathutils.Matrix()) for i in objs]
+                       objs = [(o, mathutils.Matrix()) for o in objs]
 
                if self.compound:
                        if objs is None: