Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAras Pranckevicius <aras_p>2022-03-20 15:59:16 +0300
committerAras Pranckevicius <aras@nesnausk.org>2022-03-23 14:08:17 +0300
commit1781c6002ae935af9c611dc90e12a56faaa6ed68 (patch)
tree4b4a22fae2ff09dcd05dd3aaf0c4e0bf85423d2a /source/blender/io/wavefront_obj/exporter/obj_export_file_writer.hh
parent9ed566efb67a20c66e6d8c2965546b89bdd9764e (diff)
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 b9123b806fc4 (D14349) with minor conflict fixes.
Diffstat (limited to 'source/blender/io/wavefront_obj/exporter/obj_export_file_writer.hh')
-rw-r--r--source/blender/io/wavefront_obj/exporter/obj_export_file_writer.hh4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/io/wavefront_obj/exporter/obj_export_file_writer.hh b/source/blender/io/wavefront_obj/exporter/obj_export_file_writer.hh
index 1bbdb7a848c..b68ca5f5fe0 100644
--- a/source/blender/io/wavefront_obj/exporter/obj_export_file_writer.hh
+++ b/source/blender/io/wavefront_obj/exporter/obj_export_file_writer.hh
@@ -66,10 +66,6 @@ class OBJWriter : NonMovable, NonCopyable {
*/
void write_object_name(const OBJMesh &obj_mesh_data) const;
/**
- * Write an object's group with mesh and/or material name appended conditionally.
- */
- void write_object_group(const OBJMesh &obj_mesh_data) const;
- /**
* Write file name of Material Library in .OBJ file.
*/
void write_mtllib_name(const StringRefNull mtl_filepath) const;