]> git.tdb.fi Git - libs/gl.git/commitdiff
Drop the progress parameter from export_scene
authorMikko Rasa <tdb@tdb.fi>
Sat, 17 Apr 2021 09:58:35 +0000 (12:58 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 17 Apr 2021 10:26:04 +0000 (13:26 +0300)
It wasn't being used for anything meaningful.

blender/io_mspgl/export_scene.py

index aa3c0c1963d1564ccde81faa1fb42d9c1ad44491..7f4c183aee3fe47011b1b292916e299b86e16e04 100644 (file)
@@ -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