]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_scene.py
Some fixes for the scene exporter
[libs/gl.git] / blender / io_mspgl / export_scene.py
index a76b635ae0d791096adca2230a99e397baf3c55a..fcd634fbf7330036c7880c4ef4ef2eca5f0fceb5 100644 (file)
@@ -8,7 +8,7 @@ class SceneExporter:
 
        def export(self, context, out_file):
                objs = context.selected_objects
-               objs = [o for o in objs if o.type=="MESH" and (not o.compound or o.parent not in objs)]
+               objs = [o for o in objs if o.type=="MESH" and (not o.compound or o.parent not in objs) and not o.lod_for_parent]
 
                from .outfile import open_output
                out_file = open_output(out_file)
@@ -59,4 +59,5 @@ class SceneExporter:
                                angle = q.angle
                                axis = q.axis
                        out_file.write("rotation", angle*180/math.pi, axis[0], axis[1], axis[2])
+                       out_file.write("scale", o.scale[0], o.scale[1], o.scale[2])
                        out_file.end();