]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_scene.py
Redesign depth and stencil test and blend state management
[libs/gl.git] / blender / io_mspgl / export_scene.py
index 3f0509ab6d7ec18007a3b8f4b5edb9213efe3f86..7bb32efeeb927ab6c083d0bc387d7ccbf885e358 100644 (file)
@@ -108,7 +108,7 @@ class SceneExporter:
                        resources[lighting_name] = lighting_res
 
        def export_sequence(self, scene, resources):
-               from .datafile import Resource, Statement
+               from .datafile import Resource, Statement, Token
                seq_res = Resource(scene.name+".seq", "sequence")
 
                if scene.use_hdr:
@@ -119,7 +119,7 @@ class SceneExporter:
                        content = resources[scene.name+".wrapper.scene"]
 
                ss = Statement("pass", "", "content")
-               ss.sub.append(Statement("depth_test", "lequal"))
+               ss.sub.append(Statement("depth_test", Token("LEQUAL")))
                ss.sub.append(seq_res.create_reference_statement("lighting", resources[scene.name+".lightn"]))
                ss.sub.append(seq_res.create_reference_statement("scene", content))
                seq_res.statements.append(ss)