2026-03-09 13:17:15 +01:00
|
|
|
|
|
|
|
|
#include "global.h"
|
|
|
|
|
|
2026-04-16 09:28:05 +02:00
|
|
|
#ifdef WITH_PLUGINS
|
|
|
|
|
void export_glb_run(char *path, mesh_object_t_array_t *paint_objects);
|
|
|
|
|
#endif
|
|
|
|
|
|
2026-03-07 21:12:59 +01:00
|
|
|
void export_mesh_run(char *path, mesh_object_t_array_t *paint_objects, bool apply_disp, bool merge_vertices) {
|
|
|
|
|
if (paint_objects == NULL) {
|
2024-03-13 23:50:11 +01:00
|
|
|
paint_objects = project_paint_objects;
|
|
|
|
|
}
|
2026-04-05 16:41:00 +02:00
|
|
|
if (g_context->export_mesh_format == MESH_FORMAT_OBJ) {
|
2026-04-24 13:15:00 +02:00
|
|
|
if (merge_vertices) {
|
|
|
|
|
export_obj_run(path, paint_objects, apply_disp);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
export_obj_run_fast(path, paint_objects);
|
|
|
|
|
}
|
2024-03-13 23:50:11 +01:00
|
|
|
}
|
2026-04-16 09:28:05 +02:00
|
|
|
else if (g_context->export_mesh_format == MESH_FORMAT_GLB) {
|
|
|
|
|
#ifdef WITH_PLUGINS
|
|
|
|
|
export_glb_run(path, paint_objects);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
2024-03-13 23:50:11 +01:00
|
|
|
else {
|
|
|
|
|
export_arm_run_mesh(path, paint_objects);
|
|
|
|
|
}
|
|
|
|
|
}
|