]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_mesh.py
Add a Loader for Scene, and a matching Blender exporter
[libs/gl.git] / blender / io_mspgl / export_mesh.py
index dbb3a269fcdab5f711bab6920da3f6f9b696e1ff..e429d7ae35ccd3c9daf4350e5decaf6e395084cb 100644 (file)
@@ -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: