Commit: eaef8d50bc9acf35b279a25a93f9756da30a05ae
Author: Aras Pranckevicius
Date:   Mon Jan 2 16:12:17 2023 +0200
Branches: master
https://developer.blender.org/rBeaef8d50bc9acf35b279a25a93f9756da30a05ae

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

===================================================================

M       source/blender/io/wavefront_obj/exporter/obj_export_file_writer.cc

===================================================================

diff --git a/source/blender/io/wavefront_obj/exporter/obj_export_file_writer.cc 
b/source/blender/io/wavefront_obj/exporter/obj_export_file_writer.cc
index 909c179dda3..ec09a145f1b 100644
--- a/source/blender/io/wavefront_obj/exporter/obj_export_file_writer.cc
+++ b/source/blender/io/wavefront_obj/exporter/obj_export_file_writer.cc
@@ -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);
         }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to