X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_mesh.py;h=012386185faa7755388f3aa108e5d02a093446ec;hp=220670da28fd881d270e2bbbc230085d3551db8d;hb=74a5bc6159d2c753786a5ef6bf785263cd0538f1;hpb=9c62dbb21e979d23c2e7cf0aff3746402718c7b2 diff --git a/blender/io_mspgl/export_mesh.py b/blender/io_mspgl/export_mesh.py index 220670da..01238618 100644 --- a/blender/io_mspgl/export_mesh.py +++ b/blender/io_mspgl/export_mesh.py @@ -14,6 +14,8 @@ class MeshExporter: task = ctx.task("Creating statements", 1.0) + statements.append(Statement("winding", Token('COUNTERCLOCKWISE'))) + st = Statement("vertices", Token("VERTEX3_FLOAT")) stride = 12 if mesh.vertices[0].color: @@ -106,9 +108,6 @@ class MeshExporter: st.sub.append(Statement("indices", *(v.index for v in l.vertices))) statements.append(st) - if mesh.winding_test: - statements.append(Statement("winding", Token('COUNTERCLOCKWISE'))) - task.set_progress(1.0) return resource