From: Mikko Rasa Date: Sun, 16 Jun 2019 08:48:32 +0000 (+0300) Subject: Import fixes for exporter X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=7dd9bd52860aff5372a2526cf689d3a19ea37fe0;p=libs%2Fgl.git Import fixes for exporter --- diff --git a/blender/io_mspgl/export_scene.py b/blender/io_mspgl/export_scene.py index 5ec3803d..68b58987 100644 --- a/blender/io_mspgl/export_scene.py +++ b/blender/io_mspgl/export_scene.py @@ -62,8 +62,8 @@ class SceneExporter: scene_res = self.export_scene(context, objs, progress, prototypes=object_prototypes, resources=resources) refs = scene_res.collect_references() - from .datafile import Statement if self.resource_collection: + from .datafile import Statement keywords = { ".mat": "material", ".mesh": "mesh", ".object": "object", diff --git a/blender/io_mspgl/export_texture.py b/blender/io_mspgl/export_texture.py index 0a43ce62..c3c58c3b 100644 --- a/blender/io_mspgl/export_texture.py +++ b/blender/io_mspgl/export_texture.py @@ -23,7 +23,6 @@ class TextureExporter: tex_res.statements.append(Statement("min_filter", Token('NEAREST'))) if not self.inline_data and texture.image.filepath: - from .util import image_name tex_res.statements.append(Statement("external_image", os.path.basename(texture.image.filepath))) else: texdata = ""