]> git.tdb.fi Git - libs/gl.git/commitdiff
Don't export plain values for texture-only material properties
authorMikko Rasa <tdb@tdb.fi>
Sat, 13 Feb 2021 16:45:25 +0000 (18:45 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 13 Feb 2021 18:54:23 +0000 (20:54 +0200)
blender/io_mspgl/export_material.py

index 5710e0cec1b998697a92ecf1be01ed37260d1532..4ce892dbba742bb711d76eab69c09da3d40e218a 100644 (file)
@@ -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: