+ if self.separate_mesh:
+ path, base = os.path.split(out_file.filename)
+ base, ext = os.path.splitext(base)
+ mesh_out = open_output(os.path.join(path, base+".mesh"))
+ mesh = mesh_export.export(context, mesh_out)
+ out_file.write("mesh", "\""+base+".mesh\"")
+ else:
+ out_file.begin("mesh")
+ mesh = mesh_export.export(context, out_file)
+ out_file.end()