From 213339d3d269b9bce1edce9561b1ea3e6c2c97e9 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 17 Apr 2021 12:58:35 +0300 Subject: [PATCH] Drop the progress parameter from export_scene It wasn't being used for anything meaningful. --- blender/io_mspgl/export_scene.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/blender/io_mspgl/export_scene.py b/blender/io_mspgl/export_scene.py index aa3c0c19..7f4c183a 100644 --- a/blender/io_mspgl/export_scene.py +++ b/blender/io_mspgl/export_scene.py @@ -24,8 +24,9 @@ class SceneExporter: resources = {} data_exporter.export_resources(context, scene.prototypes, resources, None, progress) - scene_res = self.export_scene(scene, resources, progress) + scene_res = self.export_scene(scene, resources) refs = scene_res.collect_references() + progress.set_progress(1.0) if self.collection: existing = None @@ -37,7 +38,7 @@ class SceneExporter: for r in refs: r.write_to_file(os.path.join(path, r.name)) - def export_scene(self, scene, resources, progress): + def export_scene(self, scene, resources): from .datafile import Resource, Statement, Token scene_res = Resource(scene.name+".scene", "scene") @@ -65,6 +66,4 @@ class SceneExporter: st.sub.append(ss) scene_res.statements.append(st) - progress.set_progress(1.0) - return scene_res -- 2.45.2