From: Mikko Rasa Date: Wed, 30 Nov 2016 22:39:34 +0000 (+0200) Subject: Some fixes for the scene exporter X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=1a561b4e8d77fd14711b2304152e0b2408a49fdf Some fixes for the scene exporter --- diff --git a/blender/io_mspgl/export_mesh.py b/blender/io_mspgl/export_mesh.py index 1652c1a4..140d745e 100644 --- a/blender/io_mspgl/export_mesh.py +++ b/blender/io_mspgl/export_mesh.py @@ -195,7 +195,7 @@ class MeshExporter: def export(self, context, out_file, objs=None, progress=None): if objs: - objs = [(o, mathutils.Matrix()) for i in objs] + objs = [(o, mathutils.Matrix()) for o in objs] if self.compound: if objs is None: diff --git a/blender/io_mspgl/export_scene.py b/blender/io_mspgl/export_scene.py index a76b635a..fcd634fb 100644 --- a/blender/io_mspgl/export_scene.py +++ b/blender/io_mspgl/export_scene.py @@ -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();