From: Mikko Rasa Date: Sun, 26 May 2019 18:17:42 +0000 (+0300) Subject: Mark datafile tokens as such X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6e0a6f7a7a406bd22eb4e3f7fc4bf2bdce01d7f9;p=libs%2Fgl.git Mark datafile tokens as such --- diff --git a/blender/io_mspgl/export_mesh.py b/blender/io_mspgl/export_mesh.py index 7b8fd771..e620b86f 100644 --- a/blender/io_mspgl/export_mesh.py +++ b/blender/io_mspgl/export_mesh.py @@ -113,19 +113,19 @@ class MeshExporter: st.sub.append(Statement("indices", *(v.index for v in s[i:i+32]))) statements.append(st) else: - st = Statement("batch", "TRIANGLES") + st = Statement("batch", Token('TRIANGLES')) for f in mesh.faces: st.sub.append(Statement("indices", *(v.index for v in f.vertices))) statements.append(st) if mesh.lines: - st = Statement("batch", "LINES") + st = Statement("batch", Token('LINES')) for l in mesh.lines: st.sub.append(Statement("indices", *(v.index for v in l.vertices))) statements.append(st) if mesh.winding_test: - statements.append(Statement("winding", "COUNTERCLOCKWISE")) + statements.append(Statement("winding", Token('COUNTERCLOCKWISE'))) progress.set_progress(1.0)