From: Mikko Rasa Date: Mon, 11 Oct 2021 13:20:43 +0000 (+0300) Subject: Fix export of the stub technique X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=64450cf937a26e267a6e7bb001b04971f3bfd35e;p=libs%2Fgl.git Fix export of the stub technique --- diff --git a/blender/io_mspgl/export_object.py b/blender/io_mspgl/export_object.py index 32894f7e..6e91df8d 100644 --- a/blender/io_mspgl/export_object.py +++ b/blender/io_mspgl/export_object.py @@ -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