From 976d2564de7c4e6394b3499b30a53a736771c808 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 17 Apr 2021 20:39:46 +0300 Subject: [PATCH] Remove the show_progress flag It has outlived its usefulness since the operators can now export multiple objects or entire scenes at once. --- blender/io_mspgl/__init__.py | 2 -- blender/io_mspgl/export.py | 3 +-- blender/io_mspgl/export_scene.py | 3 +-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/blender/io_mspgl/__init__.py b/blender/io_mspgl/__init__.py index 2158764d..fb7a1a7a 100644 --- a/blender/io_mspgl/__init__.py +++ b/blender/io_mspgl/__init__.py @@ -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: diff --git a/blender/io_mspgl/export.py b/blender/io_mspgl/export.py index 4751468b..f36cc4df 100644 --- a/blender/io_mspgl/export.py +++ b/blender/io_mspgl/export.py @@ -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 diff --git a/blender/io_mspgl/export_scene.py b/blender/io_mspgl/export_scene.py index 63ca1f38..3dc3236b 100644 --- a/blender/io_mspgl/export_scene.py +++ b/blender/io_mspgl/export_scene.py @@ -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) -- 2.45.2