]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove the show_progress flag
authorMikko Rasa <tdb@tdb.fi>
Sat, 17 Apr 2021 17:39:46 +0000 (20:39 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 17 Apr 2021 17:39:46 +0000 (20:39 +0300)
It has outlived its usefulness since the operators can now export
multiple objects or entire scenes at once.

blender/io_mspgl/__init__.py
blender/io_mspgl/export.py
blender/io_mspgl/export_scene.py

index 2158764d40dbd74ff4303c8455b777d720c82a21..fb7a1a7a923fda0bda86eda9a3a6ce1cb790432c 100644 (file)
@@ -17,8 +17,6 @@ import bpy
 from bpy_extras.io_utils import ExportHelper
 
 class ExportMspGLBase(ExportHelper):
-       show_progress: bpy.props.BoolProperty(name="Show progress", description="Display progress indicator while exporting", default=True)
-
        def set_extension(self, ext):
                ext_changed = (ext!=self.filename_ext)
                if ext_changed:
index 4751468b416a4b1316ae7c089dc3990c09707e0e..f36cc4df6c1d774d8b66d6604f3ab2ac9440ca3e 100644 (file)
@@ -2,13 +2,12 @@ import os
 
 class DataExporter:
        def __init__(self):
-               self.show_progress = True
                self.collection = False
                self.shared_resources = True
 
        def export_to_file(self, context, out_fn):
                from .util import Progress
-               progress = Progress(self.show_progress and context)
+               progress = Progress(context)
 
                objects = context.selected_objects
 
index 63ca1f38ec2717f61c403c363677f89f5ff151c2..3dc3236b04b992c67ced8a583e991f50a9011410 100644 (file)
@@ -7,11 +7,10 @@ class SceneExporter:
                self.visible_only = True
                self.collection = True
                self.skip_existing = True
-               self.show_progress = True
 
        def export_to_file(self, context, out_fn):
                from .util import Progress
-               progress = Progress(self.show_progress and context)
+               progress = Progress(context)
 
                from .scene import create_scene_from_current
                scene = create_scene_from_current(context, selected_only=self.selected_only, visible_only=self.visible_only)