X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_mesh.py;h=e429d7ae35ccd3c9daf4350e5decaf6e395084cb;hp=dbb3a269fcdab5f711bab6920da3f6f9b696e1ff;hb=de5d710b87879d6a0b06407da096ec505f8b7679;hpb=7533ecca549e09eab5ef229292de8908370c395c diff --git a/blender/io_mspgl/export_mesh.py b/blender/io_mspgl/export_mesh.py index dbb3a269..e429d7ae 100644 --- a/blender/io_mspgl/export_mesh.py +++ b/blender/io_mspgl/export_mesh.py @@ -191,9 +191,10 @@ class MeshExporter: return strips, loose - def export(self, context, out_file): + def export(self, context, out_file, objs=None): if self.compound: - objs = context.selected_objects + if objs is None: + objs = context.selected_objects check = objs while check: children = [] @@ -203,7 +204,7 @@ class MeshExporter: children.append(c) objs += children check = children - else: + elif objs is None: objs = [context.active_object] if not objs: