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:
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)
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();