X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=blender%2Fio_mesh_mspgl%2Fexport_mspgl.py;h=c0fd96e9b5e71550f9a0b90bf1aeef2b113b5089;hp=c776c54fea3fddec0051941e7230884abc60d695;hb=95cc5788bd736be92b3810d3fea398fadc8865b1;hpb=57fc4142e0b19a21f61c60b00f8310d5d2c27871 diff --git a/blender/io_mesh_mspgl/export_mspgl.py b/blender/io_mesh_mspgl/export_mspgl.py index c776c54f..c0fd96e9 100644 --- a/blender/io_mesh_mspgl/export_mspgl.py +++ b/blender/io_mesh_mspgl/export_mspgl.py @@ -111,8 +111,9 @@ class Exporter: island.append(face) for n in f.get_neighbors(): - n.flag = True - queue.append(n) + if not n.flag: + n.flag = True + queue.append(n) # Unflag the island for the next phase for f in island: @@ -127,7 +128,7 @@ class Exporter: if f.flag: continue - score = sum(n.flag for n in f.get_neighbors()) + score = sum(not n.flag for n in f.get_neighbors()) if score>0 and score