]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove unnecessary import statements from the Blender exporter
authorMikko Rasa <tdb@tdb.fi>
Sun, 6 Mar 2022 10:37:35 +0000 (12:37 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 6 Mar 2022 10:37:35 +0000 (12:37 +0200)
blender/io_mspgl/export.py
blender/io_mspgl/export_material.py
blender/io_mspgl/export_mesh.py
blender/io_mspgl/export_object.py
blender/io_mspgl/export_texture.py
blender/io_mspgl/mesh.py
blender/io_mspgl/util.py

index 190069c4f3caa961ed3512ec191b9366f7238be4..3aa2ecd0610ef5a6d047e0a15b362b630b22e693 100644 (file)
@@ -1,5 +1,4 @@
 import os
-import itertools
 
 class DataExporter:
        def export_to_file(self, ctx, out_fn, *, collection=False, shared_resources=False):
index 4941a5851d1b34592e567f80c08cb33af0e919fd..8560984ea4457dd0d4afb5b93fc8c29e95c30eed 100644 (file)
@@ -1,5 +1,3 @@
-import os
-
 def create_technique_resource(material, resources):
        from .datafile import Resource, Statement, Token
        tech_res = Resource(material.name+".tech", "technique")
index b85fd2f8c57c9906290548daaf7882aa962b1837..220670da28fd881d270e2bbbc230085d3551db8d 100644 (file)
@@ -1,8 +1,3 @@
-import itertools
-import os
-import bpy
-import mathutils
-
 class MeshExporter:
        def export_mesh(self, ctx, mesh_or_obj):
                from .mesh import Mesh, create_mesh_from_object
index d78f5fcd27fd1d266e705e286ed1b8ec3c805bc1..c79d7d0e0b84abb31fa386305ed2be067e69d9af 100644 (file)
@@ -1,5 +1,4 @@
 import os
-import mathutils
 
 class ObjectExporter:
        def collect_object_lods(self, obj):
index e03b1b0c9185f09d44fc1a96f0d9ce42678965de..3194edae8e53e1a407acac8073327ba818e52bdd 100644 (file)
@@ -1,6 +1,4 @@
 import os
-import base64
-import codecs
 import bpy
 
 def pixels_to_rgba(pixels):
index 7a33778dd68572e4b3c8cf60530693dde733b3c7..fadbcee9a18e7ac1e397559c63eddb68504a2218 100644 (file)
@@ -1,4 +1,3 @@
-import bpy
 import math
 import mathutils
 import itertools
index 318b9ce996dd165a2da34aa7ce0f558bce8d35ee..bfabfa35a50b10927a4d7d810c477f5ab5d0e936 100644 (file)
@@ -1,5 +1,3 @@
-import os
-
 def linear_to_srgb(l):
        if l<0.0031308:
                return 12.92*l