From 1a561b4e8d77fd14711b2304152e0b2408a49fdf Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 1 Dec 2016 00:39:34 +0200 Subject: [PATCH] Some fixes for the scene exporter --- blender/io_mspgl/export_mesh.py | 2 +- blender/io_mspgl/export_scene.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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(); -- 2.45.2