Fix T102672: OBJ exporter "material groups" option wrong for objects with >32k faces
Turns out, using the wrong output buffer (global one, instead of per-thread one) puts the data into the wrong buffer! Fixes T102672
This commit is contained in:
parent
46c1cddabd
commit
eaef8d50bc
Notes:
blender-bot
2023-02-14 05:52:32 +01:00
Referenced by issue #102672, New OBJ exporter does not export groups by material if dense mesh
|
@ -392,7 +392,7 @@ void OBJWriter::write_poly_elements(FormatHandler &fh,
|
|||
if (export_params_.export_material_groups) {
|
||||
std::string object_name = obj_mesh_data.get_object_name();
|
||||
spaces_to_underscores(object_name);
|
||||
fh.write_obj_group(object_name + "_" + mat_name);
|
||||
buf.write_obj_group(object_name + "_" + mat_name);
|
||||
}
|
||||
buf.write_obj_usemtl(mat_name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue