29 lines
695 B
C
29 lines
695 B
C
|
|
#include "../global.h"
|
|
|
|
#ifdef WITH_PLUGINS
|
|
void export_glb_run(char *path, mesh_object_t_array_t *paint_objects);
|
|
#endif
|
|
|
|
void export_mesh_run(char *path, mesh_object_t_array_t *paint_objects, bool apply_disp, bool merge_vertices) {
|
|
if (paint_objects == NULL) {
|
|
paint_objects = project_paint_objects;
|
|
}
|
|
if (g_context->export_mesh_format == MESH_FORMAT_OBJ) {
|
|
if (merge_vertices) {
|
|
export_obj_run(path, paint_objects, apply_disp);
|
|
}
|
|
else {
|
|
export_obj_run_fast(path, paint_objects);
|
|
}
|
|
}
|
|
else if (g_context->export_mesh_format == MESH_FORMAT_GLB) {
|
|
#ifdef WITH_PLUGINS
|
|
export_glb_run(path, paint_objects);
|
|
#endif
|
|
}
|
|
else {
|
|
export_arm_run_mesh(path, paint_objects);
|
|
}
|
|
}
|