-
- Downloads
Fix T96470 new obj exporter writing material groups
The logic in the code was _completely different_ from the documentation and what the python exporter in 3.0 did. The new code assumed that "export material groups" meant "append material name to the object name", and was only ever kicking in when the "export object groups" option was also checked. But the proper behavior (as in 3.0 exporter & the online docs), is to emit g objectname_materialname before each usemtl line. Which is something entirely else. Cherry picked from b9123b80 (D14349) with minor conflict fixes.
Showing
- source/blender/editors/io/io_obj.c 1 addition, 1 deletionsource/blender/editors/io/io_obj.c
- source/blender/io/wavefront_obj/exporter/obj_export_file_writer.cc 7 additions, 24 deletions...ender/io/wavefront_obj/exporter/obj_export_file_writer.cc
- source/blender/io/wavefront_obj/exporter/obj_export_file_writer.hh 0 additions, 4 deletions...ender/io/wavefront_obj/exporter/obj_export_file_writer.hh
- source/blender/io/wavefront_obj/exporter/obj_export_mesh.cc 0 additions, 5 deletionssource/blender/io/wavefront_obj/exporter/obj_export_mesh.cc
- source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc 13 additions, 0 deletionssource/blender/io/wavefront_obj/tests/obj_exporter_tests.cc
Please register or sign in to comment