X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=blender%2Fio_mspgl%2Fexport_mesh.py;h=8f86888249b86951b443f52a4f8ee27f6b8a0217;hb=bc2fe1bd3e167fd8eed05f9ffeda3c255f445f70;hp=07f457a1e36720c06ee27475fd4176924f07a669;hpb=eeaa1dcf7e383517e8097c9438a286e3810962ae;p=libs%2Fgl.git diff --git a/blender/io_mspgl/export_mesh.py b/blender/io_mspgl/export_mesh.py index 07f457a1..8f868882 100644 --- a/blender/io_mspgl/export_mesh.py +++ b/blender/io_mspgl/export_mesh.py @@ -230,7 +230,10 @@ class MeshExporter: mesh = None bmeshes = [] + winding_test = False for o, m in objs: + if o.data.winding_test: + winding_test = True bmesh = o.to_mesh(context.scene, True, "PREVIEW") bmeshes.append(bmesh) me = Mesh(bmesh) @@ -387,6 +390,9 @@ class MeshExporter: out_file.write("indices", l.vertices[0].index, l.vertices[1].index) out_file.end() + if winding_test: + out_file.write("winding", "COUNTERCLOCKWISE") + if progress: progress.set_task("Done", 1.0, 1.0)