From: Mikko Rasa Date: Sat, 13 Feb 2021 16:45:25 +0000 (+0200) Subject: Don't export plain values for texture-only material properties X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d78f1335362f4c467ee2003d3c727169f788ce37;p=libs%2Fgl.git Don't export plain values for texture-only material properties --- diff --git a/blender/io_mspgl/export_material.py b/blender/io_mspgl/export_material.py index 5710e0ce..4ce892db 100644 --- a/blender/io_mspgl/export_material.py +++ b/blender/io_mspgl/export_material.py @@ -82,6 +82,8 @@ class MaterialExporter: return Statement(keyword+"_map", fn) else: return mat_res.create_reference_statement(keyword+"_map", tex_res) + elif tex_only: + return elif type(prop.value)==tuple: return Statement(keyword, *prop.value) else: