diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-25 14:01:42 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-25 14:02:50 +0300 |
commit | 28cf851a5c3128b075cb052fef0525351128dce1 (patch) | |
tree | 4e9e299b89ee2054c1199be8204821fa84277185 /source/blender/editors/space_spreadsheet | |
parent | 150e0553daff3c9bd6f1921fb1f91a41e4017d78 (diff) |
Geometry Nodes: rename attribute domains
This patch renames two domains:
* `Polygon` -> `Face`
* `Corner` -> `Face Corner`
For the change from `polygon` to `face` I did a "deep rename" where I updated
all (most?) cases where we refere to the attribute domain in code as well.
The change from `corner` to `face corner` is only a ui change. I did not see
a real need to update all code the code for that. It does not seem to improve
the code, more on the contrary.
Ref T86818.
Differential Revision: https://developer.blender.org/D10803
Diffstat (limited to 'source/blender/editors/space_spreadsheet')
-rw-r--r-- | source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc b/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc index 590fbfb5024..910bc0a34ec 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc +++ b/source/blender/editors/space_spreadsheet/spreadsheet_from_geometry.cc @@ -275,9 +275,9 @@ static void get_selected_corner_indices(const Mesh &mesh, } } -static void get_selected_polygon_indices(const Mesh &mesh, - const IsVertexSelectedFn is_vertex_selected_fn, - Vector<int64_t> &r_polygon_indices) +static void get_selected_face_indices(const Mesh &mesh, + const IsVertexSelectedFn is_vertex_selected_fn, + Vector<int64_t> &r_face_indices) { for (const int poly_index : IndexRange(mesh.totpoly)) { const MPoly &poly = mesh.mpoly[poly_index]; @@ -290,7 +290,7 @@ static void get_selected_polygon_indices(const Mesh &mesh, } } if (is_selected) { - r_polygon_indices.append(poly_index); + r_face_indices.append(poly_index); } } } @@ -315,8 +315,8 @@ static void get_selected_indices_on_domain(const Mesh &mesh, switch (domain) { case ATTR_DOMAIN_POINT: return get_selected_vertex_indices(mesh, is_vertex_selected_fn, r_indices); - case ATTR_DOMAIN_POLYGON: - return get_selected_polygon_indices(mesh, is_vertex_selected_fn, r_indices); + case ATTR_DOMAIN_FACE: + return get_selected_face_indices(mesh, is_vertex_selected_fn, r_indices); case ATTR_DOMAIN_CORNER: return get_selected_corner_indices(mesh, is_vertex_selected_fn, r_indices); case ATTR_DOMAIN_EDGE: |