-
- Downloads
Fix T96511: New OBJ exporter no longer groups faces by material
Old python exporter in 3.0 and earlier ordered faces by material, but the new C++ exporter in 3.1+ did not, and was just writing them in whatever is the order of the mesh data structure. This mostly does not cause problems, except in some apps e.g. Procreate -- for large enough meshes, this lack of "order by material" (which ends up having more usemtl lines) ends up creating more mesh subsets than necessary inside Procreate. The change is not computationally heavy, e.g. exporting 6-level subdivided Monkey mesh goes 1085ms -> 1105ms on my machine. Reviewed By: @howardt Differential Revision: https://developer.blender.org/D14368 Cherry-picked from: eb1755be + fab14f78 + 8c072cdc
Showing
- source/blender/io/wavefront_obj/exporter/obj_export_file_writer.cc 6 additions, 1 deletion...ender/io/wavefront_obj/exporter/obj_export_file_writer.cc
- source/blender/io/wavefront_obj/exporter/obj_export_mesh.cc 19 additions, 0 deletionssource/blender/io/wavefront_obj/exporter/obj_export_mesh.cc
- source/blender/io/wavefront_obj/exporter/obj_export_mesh.hh 20 additions, 0 deletionssource/blender/io/wavefront_obj/exporter/obj_export_mesh.hh
- source/blender/io/wavefront_obj/exporter/obj_exporter.cc 3 additions, 0 deletionssource/blender/io/wavefront_obj/exporter/obj_exporter.cc
Please sign in to comment