]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix export of the stub technique
authorMikko Rasa <tdb@tdb.fi>
Mon, 11 Oct 2021 13:20:43 +0000 (16:20 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 11 Oct 2021 13:20:43 +0000 (16:20 +0300)
blender/io_mspgl/export_object.py

index 32894f7ebc1041d5555ca244d7d93a817381d2b5..6e91df8db2d0a0b8bf302576c0624486744945f1 100644 (file)
@@ -148,11 +148,11 @@ class ObjectExporter:
                return obj_res
 
        def export_stub_technique(self):
-               from .datafile import Resource, Statement
+               from .datafile import Resource, Statement, Token
                tech_res = Resource("stub.tech", "technique")
                pass_st = Statement("method", "")
                tech_res.statements.append(pass_st)
                mat_st = Statement("material")
                pass_st.sub.append(mat_st)
-               mat_st.sub.append(Statement("basic"))
+               mat_st.sub.append(Statement("type", Token("basic")))
                return tech_res