diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2021-01-06 18:19:22 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-01-08 13:20:42 +0300 |
commit | 03f1d8acab5b96321935b03f7a402455d2a91fc8 (patch) | |
tree | a79ead3947eb29c3815d9e37b1826ef351063540 | |
parent | 4a0b8c9427b57422f47c125a494c4631a6c0bfd1 (diff) |
Use the term "N-gon" instead of "Polygon" for triangulation method
This was reported for the Triangulate geometry node, but was also true
for the triangulate modifier and in exporters.
Note the modifier was introduced with "Ngon Method" in rBa7b44c82e5b9 but
was renamed to "Polygon Method" in rBf4762eb12ba5.
Since quads are also polygons (and quads have their own method), the
term "N-gon" is more appropriate here and is also described in the
glossary https://docs.blender.org/manual/en/2.92/glossary/
index.html#term-N-gon
Docs have been updated in rBM7539 (partially - the method would also
have to be renamed once this patch lands).
Note this also fixes the wrong enum used for the alembic exporter.
Fixes T83907
Maniphest Tasks: T83907
Differential Revision: https://developer.blender.org/D10022
-rw-r--r-- | source/blender/editors/io/io_alembic.c | 6 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 4 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_scene_api.c | 6 |
5 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/editors/io/io_alembic.c b/source/blender/editors/io/io_alembic.c index 4d8e3c72c74..636e6688971 100644 --- a/source/blender/editors/io/io_alembic.c +++ b/source/blender/editors/io/io_alembic.c @@ -439,10 +439,10 @@ void WM_OT_alembic_export(wmOperatorType *ot) RNA_def_enum(ot->srna, "ngon_method", - rna_enum_modifier_triangulate_quad_method_items, + rna_enum_modifier_triangulate_ngon_method_items, MOD_TRIANGULATE_NGON_BEAUTY, - "Polygon Method", - "Method for splitting the polygons into triangles"); + "N-gon Method", + "Method for splitting the n-gons into triangles"); RNA_def_boolean(ot->srna, "export_hair", diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 26efcf88082..84f4e35cb0c 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -5340,8 +5340,8 @@ void MESH_OT_quads_convert_to_tris(wmOperatorType *ot) "ngon_method", rna_enum_modifier_triangulate_ngon_method_items, MOD_TRIANGULATE_NGON_BEAUTY, - "Polygon Method", - "Method for splitting the polygons into triangles"); + "N-gon Method", + "Method for splitting the n-gons into triangles"); } /** \} */ diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index 38c222d9a3b..49448ad0d25 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -5901,7 +5901,7 @@ static void rna_def_modifier_triangulate(BlenderRNA *brna) RNA_def_property_enum_sdna(prop, NULL, "ngon_method"); RNA_def_property_enum_items(prop, rna_enum_modifier_triangulate_ngon_method_items); RNA_def_property_ui_text( - prop, "Polygon Method", "Method for splitting the polygons into triangles"); + prop, "N-gon Method", "Method for splitting the n-gons into triangles"); RNA_def_property_update(prop, 0, "rna_Modifier_update"); prop = RNA_def_property(srna, "min_vertices", PROP_INT, PROP_UNSIGNED); diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 8072d77059a..1e72cfe533f 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -8434,7 +8434,7 @@ static void def_geo_triangulate(StructRNA *srna) RNA_def_property_enum_items(prop, rna_node_geometry_triangulate_ngon_method_items); RNA_def_property_enum_default(prop, GEO_NODE_TRIANGULATE_NGON_BEAUTY); RNA_def_property_ui_text( - prop, "Polygon Method", "Method for splitting the polygons into triangles"); + prop, "N-gon Method", "Method for splitting the n-gons into triangles"); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); } diff --git a/source/blender/makesrna/intern/rna_scene_api.c b/source/blender/makesrna/intern/rna_scene_api.c index 94b435b5735..c2089004da2 100644 --- a/source/blender/makesrna/intern/rna_scene_api.c +++ b/source/blender/makesrna/intern/rna_scene_api.c @@ -420,10 +420,10 @@ void RNA_api_scene(StructRNA *srna) "Method for splitting the quads into triangles"); RNA_def_enum(func, "ngon_method", - rna_enum_modifier_triangulate_quad_method_items, + rna_enum_modifier_triangulate_ngon_method_items, 0, - "Polygon Method", - "Method for splitting the polygons into triangles"); + "N-gon Method", + "Method for splitting the n-gons into triangles"); RNA_def_function_flag(func, FUNC_USE_CONTEXT); # endif |