X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_mesh.py;h=cc8ee6ff9abbc1696fe2e13b16e752761ae7c58c;hb=eb76b7a02f56d8bca6cb78a7c272b9670f7faace;hp=39bf87b51e028d97ae24ace20633fbd75879570b;hpb=53b63b5ed79badaf9f7b79bbe59d6fc7dd3612c9;p=libs%2Fgl.git diff --git a/blender/io_mspgl/export_mesh.py b/blender/io_mspgl/export_mesh.py index 39bf87b5..cc8ee6ff 100644 --- a/blender/io_mspgl/export_mesh.py +++ b/blender/io_mspgl/export_mesh.py @@ -194,6 +194,15 @@ class MeshExporter: def export(self, context, out_file): if self.compound: objs = context.selected_objects + check = objs + while check: + children = [] + for o in check: + for c in o.children: + if c.compound: + children.append(c) + objs += children + check = children else: objs = [context.active_object] @@ -206,7 +215,7 @@ class MeshExporter: from .mesh import Mesh from .util import Progress - progress = Progress() + progress = Progress(context) progress.set_task("Preparing", 0.0, 0.0) mesh = None