From: Mikko Rasa Date: Sun, 6 Mar 2022 10:37:35 +0000 (+0200) Subject: Remove unnecessary import statements from the Blender exporter X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d9fbb830ddf5c9b69a046a641b16d6ae25d216b1;p=libs%2Fgl.git Remove unnecessary import statements from the Blender exporter --- diff --git a/blender/io_mspgl/export.py b/blender/io_mspgl/export.py index 190069c4..3aa2ecd0 100644 --- a/blender/io_mspgl/export.py +++ b/blender/io_mspgl/export.py @@ -1,5 +1,4 @@ import os -import itertools class DataExporter: def export_to_file(self, ctx, out_fn, *, collection=False, shared_resources=False): diff --git a/blender/io_mspgl/export_material.py b/blender/io_mspgl/export_material.py index 4941a585..8560984e 100644 --- a/blender/io_mspgl/export_material.py +++ b/blender/io_mspgl/export_material.py @@ -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") diff --git a/blender/io_mspgl/export_mesh.py b/blender/io_mspgl/export_mesh.py index b85fd2f8..220670da 100644 --- a/blender/io_mspgl/export_mesh.py +++ b/blender/io_mspgl/export_mesh.py @@ -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 diff --git a/blender/io_mspgl/export_object.py b/blender/io_mspgl/export_object.py index d78f5fcd..c79d7d0e 100644 --- a/blender/io_mspgl/export_object.py +++ b/blender/io_mspgl/export_object.py @@ -1,5 +1,4 @@ import os -import mathutils class ObjectExporter: def collect_object_lods(self, obj): diff --git a/blender/io_mspgl/export_texture.py b/blender/io_mspgl/export_texture.py index e03b1b0c..3194edae 100644 --- a/blender/io_mspgl/export_texture.py +++ b/blender/io_mspgl/export_texture.py @@ -1,6 +1,4 @@ import os -import base64 -import codecs import bpy def pixels_to_rgba(pixels): diff --git a/blender/io_mspgl/mesh.py b/blender/io_mspgl/mesh.py index 7a33778d..fadbcee9 100644 --- a/blender/io_mspgl/mesh.py +++ b/blender/io_mspgl/mesh.py @@ -1,4 +1,3 @@ -import bpy import math import mathutils import itertools diff --git a/blender/io_mspgl/util.py b/blender/io_mspgl/util.py index 318b9ce9..bfabfa35 100644 --- a/blender/io_mspgl/util.py +++ b/blender/io_mspgl/util.py @@ -1,5 +1,3 @@ -import os - def linear_to_srgb(l): if l<0.0031308: return 12.92*l