diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-24 19:46:51 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-24 19:48:29 +0300 |
commit | 342e73f90fc5c41af8db3a6e3dfdf1746f7f5bc4 (patch) | |
tree | 47fdb91d8e16b1c89f9ca358cb0172e862905ee1 /source/blender/blenkernel/intern/subdiv_foreach.c | |
parent | 9682e43bf9e078165b3d4d52c6a19c430ec2cbf2 (diff) |
Spelling fixes in comments and descriptions (2.8 changes), patch by luzpaz.
Differential Revision: https://developer.blender.org/D3719
Diffstat (limited to 'source/blender/blenkernel/intern/subdiv_foreach.c')
-rw-r--r-- | source/blender/blenkernel/intern/subdiv_foreach.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/subdiv_foreach.c b/source/blender/blenkernel/intern/subdiv_foreach.c index 5c45d7017d3..511536c31b5 100644 --- a/source/blender/blenkernel/intern/subdiv_foreach.c +++ b/source/blender/blenkernel/intern/subdiv_foreach.c @@ -123,7 +123,7 @@ typedef struct SubdivForeachTaskContext { */ BLI_bitmap *coarse_vertices_used_map; /* Bitmap indicating whether edge was used already or not. This includes: - * - During context initialization it indicates whether subdivided verticies + * - During context initialization it indicates whether subdivided vertices * for corresponding edge were already calculated or not. * - During patch evaluation it indicates whether vertices along this edge * were already evaluated. @@ -167,7 +167,7 @@ static void subdiv_foreach_ctx_count(SubdivForeachTaskContext *ctx) ctx->num_subdiv_vertices += num_subdiv_vertices_per_coarse_edge; } } - /* Inner verticies of polygon. */ + /* Inner vertices of polygon. */ if (num_ptex_faces_per_poly == 1) { ctx->num_subdiv_vertices += num_inner_vertices_per_quad; ctx->num_subdiv_edges += @@ -1322,13 +1322,13 @@ static void subdiv_foreach_loops_regular(SubdivForeachTaskContext *ctx, for (int x = 1; x < ptex_resolution - 2; x++, subdiv_loop_index += 4) { const int inner_x = x - 1; const float u = x * inv_ptex_resolution_1; - /* Vertex indicies ordered counter-clockwise. */ + /* Vertex indices ordered counter-clockwise. */ const int v0 = start_vertex_index + (inner_y * ptex_inner_resolution + inner_x); const int v1 = v0 + 1; const int v2 = v0 + ptex_inner_resolution + 1; const int v3 = v0 + ptex_inner_resolution; - /* Edge indicies ordered counter-clockwise. */ + /* Edge indices ordered counter-clockwise. */ const int e0 = start_edge_index + (inner_y * (2 * ptex_inner_resolution - 1) + inner_x); const int e1 = e0 + ptex_inner_resolution; @@ -1517,14 +1517,14 @@ static void subdiv_foreach_loops_special(SubdivForeachTaskContext *ctx, { const int inner_x = x - 1; const float u = x * inv_ptex_resolution_1; - /* Vertex indicies ordered counter-clockwise. */ + /* Vertex indices ordered counter-clockwise. */ const int v0 = corner_vertex_index + (inner_y * (ptex_face_inner_resolution + 1) + inner_x); const int v1 = v0 + 1; const int v2 = v0 + ptex_face_inner_resolution + 2; const int v3 = v0 + ptex_face_inner_resolution + 1; - /* Edge indicies ordered counter-clockwise. */ + /* Edge indices ordered counter-clockwise. */ const int e0 = corner_edge_index + (inner_y * (2 * ptex_face_inner_resolution + 1) + inner_x); const int e1 = e0 + ptex_face_inner_resolution + 1; @@ -1905,7 +1905,7 @@ static void subdiv_foreach_vertices_of_loose_edges_task( const int num_subdiv_vertices_per_coarse_edge = resolution - 2; const Mesh *coarse_mesh = ctx->coarse_mesh; const MEdge *coarse_edge = &coarse_mesh->medge[coarse_edge_index]; - /* Subdivion verticies which corresponds to edge's v1 and v2. */ + /* Subdivion vertices which corresponds to edge's v1 and v2. */ const int subdiv_v1_index = ctx->vertices_corner_offset + coarse_edge->v1; const int subdiv_v2_index = |