From: Mikko Rasa Date: Sat, 17 Apr 2021 09:58:35 +0000 (+0300) Subject: Drop the progress parameter from export_scene X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=213339d3d269b9bce1edce9561b1ea3e6c2c97e9;p=libs%2Fgl.git Drop the progress parameter from export_scene It wasn't being used for anything meaningful. --- 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