2024-03-13 23:50:11 +01:00
|
|
|
|
2025-01-20 17:23:03 +01:00
|
|
|
function export_mesh_run(path: string, paint_objects: mesh_object_t[] = null, apply_disp: bool = false, merge_vertices: bool = true) {
|
2024-03-13 23:50:11 +01:00
|
|
|
if (paint_objects == null) {
|
|
|
|
|
paint_objects = project_paint_objects;
|
|
|
|
|
}
|
|
|
|
|
if (context_raw.export_mesh_format == mesh_format_t.OBJ) {
|
2025-01-20 17:23:03 +01:00
|
|
|
merge_vertices ?
|
|
|
|
|
export_obj_run(path, paint_objects, apply_disp) :
|
|
|
|
|
export_obj_run_fast(path, paint_objects);
|
2024-03-13 23:50:11 +01:00
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
export_arm_run_mesh(path, paint_objects);
|
|
|
|
|
}
|
|
|
|
|
}
|