Intended for scripts that call the MSP export operators multiple times.
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 execute(self, context):
exporter = self.create_exporter()
self.prepare_exporter(exporter)
class MeshExporter:
def __init__(self):
+ self.show_progress = True
self.use_strips = True
self.use_degen_tris = False
self.max_strip_len = 1024
from .mesh import Mesh
from .util import Progress
- if not progress:
- progress = Progress(context)
- progress.set_task("Preparing", 0.0, 0.0)
+ if self.show_progress:
+ if not progress:
+ progress = Progress(context)
+ progress.set_task("Preparing", 0.0, 0.0)
+ else:
+ progress = None
mesh = None
bmeshes = []