From 7dd9bd52860aff5372a2526cf689d3a19ea37fe0 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 16 Jun 2019 11:48:32 +0300 Subject: [PATCH] Import fixes for exporter --- blender/io_mspgl/export_scene.py | 2 +- blender/io_mspgl/export_texture.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 = "" -- 2.45.2