diff options
author | Aras Pranckevicius <aras_p> | 2022-03-20 15:59:16 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2022-03-20 15:59:16 +0300 |
commit | b9123b806fc4d17d684c0cc7057c0d3c7136d067 (patch) | |
tree | 44179fc1a116f7198fdfbc1e5e8c036be4a52420 /source/blender/editors/io | |
parent | 5bfdaaa80082be12af9850a2af294823005abb72 (diff) |
Fix T96470 new obj exporter writing material groups
This is patch D14349 from Aras Pranckevicius.
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.
Diffstat (limited to 'source/blender/editors/io')
-rw-r--r-- | source/blender/editors/io/io_obj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/io/io_obj.c b/source/blender/editors/io/io_obj.c index 8e380e3f2bc..df15191916a 100644 --- a/source/blender/editors/io/io_obj.c +++ b/source/blender/editors/io/io_obj.c @@ -342,7 +342,7 @@ void WM_OT_obj_export(struct wmOperatorType *ot) "export_material_groups", false, "Export Material Groups", - "Append mesh name and material name to object name, separated by a '_'"); + "Generate an OBJ group for each part of a geometry using a different material"); RNA_def_boolean( ot->srna, "export_vertex_groups", |