]> git.tdb.fi Git - libs/gl.git/commitdiff
Mark datafile tokens as such
authorMikko Rasa <tdb@tdb.fi>
Sun, 26 May 2019 18:17:42 +0000 (21:17 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 26 May 2019 18:17:42 +0000 (21:17 +0300)
blender/io_mspgl/export_mesh.py

index 7b8fd771cd0ceab2c926a1be0db9cc3207745ab1..e620b86f22ab9f0ebe155eb8ed50d3bcd9615789 100644 (file)
@@ -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)