diff options
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/subdiv_eval.c | 6 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/subdiv_foreach.c | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/blenkernel/intern/subdiv_eval.c b/source/blender/blenkernel/intern/subdiv_eval.c index bf5e886dd22..615698cad49 100644 --- a/source/blender/blenkernel/intern/subdiv_eval.c +++ b/source/blender/blenkernel/intern/subdiv_eval.c @@ -80,7 +80,7 @@ static void set_coarse_positions(Subdiv *subdiv, BLI_BITMAP_ENABLE(vertex_used_map, loop->v); } } - for (int vertex_index = 0, manifold_veretx_index = 0; vertex_index < mesh->totvert; + for (int vertex_index = 0, manifold_vertex_index = 0; vertex_index < mesh->totvert; vertex_index++) { if (!BLI_BITMAP_TEST_BOOL(vertex_used_map, vertex_index)) { continue; @@ -93,8 +93,8 @@ static void set_coarse_positions(Subdiv *subdiv, const MVert *vertex = &mvert[vertex_index]; vertex_co = vertex->co; } - subdiv->evaluator->setCoarsePositions(subdiv->evaluator, vertex_co, manifold_veretx_index, 1); - manifold_veretx_index++; + subdiv->evaluator->setCoarsePositions(subdiv->evaluator, vertex_co, manifold_vertex_index, 1); + manifold_vertex_index++; } MEM_freeN(vertex_used_map); } diff --git a/source/blender/blenkernel/intern/subdiv_foreach.c b/source/blender/blenkernel/intern/subdiv_foreach.c index 884b8d74790..0f56fc5ec21 100644 --- a/source/blender/blenkernel/intern/subdiv_foreach.c +++ b/source/blender/blenkernel/intern/subdiv_foreach.c @@ -525,13 +525,13 @@ static void subdiv_foreach_edge_vertices_special_do(SubdivForeachTaskContext *ct const bool flip = (coarse_edge->v2 == coarse_loop->v); int subdiv_vertex_index = ctx->vertices_edge_offset + coarse_edge_index * num_subdiv_vertices_per_coarse_edge; - int veretx_delta = 1; + int vertex_delta = 1; if (flip) { subdiv_vertex_index += num_subdiv_vertices_per_coarse_edge - 1; - veretx_delta = -1; + vertex_delta = -1; } for (int vertex_index = 1; vertex_index < num_vertices_per_ptex_edge; - vertex_index++, subdiv_vertex_index += veretx_delta) { + vertex_index++, subdiv_vertex_index += vertex_delta) { const float u = vertex_index * inv_ptex_resolution_1; vertex_edge(ctx->foreach_context, tls, @@ -546,7 +546,7 @@ static void subdiv_foreach_edge_vertices_special_do(SubdivForeachTaskContext *ct const int next_corner = (corner + 1) % coarse_poly->totloop; const int next_ptex_face_index = ptex_face_start_index + next_corner; for (int vertex_index = 1; vertex_index < num_vertices_per_ptex_edge - 1; - vertex_index++, subdiv_vertex_index += veretx_delta) { + vertex_index++, subdiv_vertex_index += vertex_delta) { const float v = 1.0f - vertex_index * inv_ptex_resolution_1; vertex_edge(ctx->foreach_context, tls, @@ -829,7 +829,7 @@ static void subdiv_foreach_edges_all_patches_regular(SubdivForeachTaskContext *c const bool flip = (coarse_edge->v2 == coarse_loop->v); int side_start_index = start_vertex_index; int side_stride = 0; - /* Calculate starting veretx of corresponding inner part of ptex. */ + /* Calculate starting vertex of corresponding inner part of ptex. */ if (corner == 0) { side_stride = 1; } @@ -1210,7 +1210,7 @@ static void subdiv_foreach_loops_regular(SubdivForeachTaskContext *ctx, v3 = ctx->vertices_edge_offset + prev_coarse_loop->e * num_subdiv_vertices_per_coarse_edge; e3 = ctx->edge_boundary_offset + prev_coarse_loop->e * num_subdiv_edges_per_coarse_edge; } - /* Calculate starting veretx of corresponding inner part of ptex. */ + /* Calculate starting vertex of corresponding inner part of ptex. */ if (corner == 0) { side_stride = 1; e2_offset = 0; |