Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/wavefront_obj/exporter/obj_exporter.cc
| Context not available. | |||||
| std::move(exportable_as_mesh), *frame_writer, mtl_writer.get(), export_params); | std::move(exportable_as_mesh), *frame_writer, mtl_writer.get(), export_params); | ||||
| if (mtl_writer) { | if (mtl_writer) { | ||||
| mtl_writer->write_header(export_params.blen_filepath); | mtl_writer->write_header(export_params.blen_filepath); | ||||
| mtl_writer->write_materials(); | char dest_dir[PATH_MAX]; | ||||
| if (export_params.file_base_for_tests[0] == '\0') { | |||||
| BLI_split_dir_part(export_params.filepath, dest_dir, PATH_MAX); | |||||
| } | |||||
| else { | |||||
| BLI_strncpy(dest_dir, export_params.file_base_for_tests, PATH_MAX); | |||||
| } | |||||
| BLI_path_slash_native(dest_dir); | |||||
| BLI_path_normalize(nullptr, dest_dir); | |||||
| mtl_writer->write_materials(export_params.blen_filepath, export_params.path_mode, dest_dir); | |||||
| } | } | ||||
| write_nurbs_curve_objects(std::move(exportable_as_nurbs), *frame_writer); | write_nurbs_curve_objects(std::move(exportable_as_nurbs), *frame_writer); | ||||
| } | } | ||||
| Context not available. | |||||