import math
import os
-from .export_object import ObjectExporter
-from .outfile import OutFile
class SceneExporter:
def __init__(self):
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)
path, base = os.path.split(out_file.filename)
base, ext = os.path.splitext(base)
+ from .export_object import ObjectExporter
object_export = ObjectExporter()
object_export.compound = True
object_export.external_tech = self.external_tech
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();