Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-08-24 03:26:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-08-24 03:32:57 +0300
commit0cf12dfc14f8312d9fe9db1d512dfb55104f6ac6 (patch)
tree008d2986e3d31ce851749c65272492b49d18647e /source/blender/blenkernel/intern/subdiv_foreach.c
parent1c63a3a100414f504b25571fd0b8fd29af42922c (diff)
Cleanup: indentation, style
Diffstat (limited to 'source/blender/blenkernel/intern/subdiv_foreach.c')
-rw-r--r--source/blender/blenkernel/intern/subdiv_foreach.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/source/blender/blenkernel/intern/subdiv_foreach.c b/source/blender/blenkernel/intern/subdiv_foreach.c
index 0f02df82cd5..d77bbe8a15d 100644
--- a/source/blender/blenkernel/intern/subdiv_foreach.c
+++ b/source/blender/blenkernel/intern/subdiv_foreach.c
@@ -746,15 +746,14 @@ static void subdiv_foreach_inner_vertices_special(
const int coarse_poly_index = coarse_poly - coarse_mesh->mpoly;
int ptex_face_index = ctx->face_ptex_offset[coarse_poly_index];
const int start_vertex_index = ctx->subdiv_vertex_offset[coarse_poly_index];
- int subdiv_vertex_index =
- ctx->vertices_inner_offset + start_vertex_index;
+ int subdiv_vertex_index = ctx->vertices_inner_offset + start_vertex_index;
ctx->foreach_context->vertex_inner(
- ctx->foreach_context,
+ ctx->foreach_context,
tls,
- ptex_face_index,
- 1.0f, 1.0f,
- coarse_poly_index, 0,
- subdiv_vertex_index);
+ ptex_face_index,
+ 1.0f, 1.0f,
+ coarse_poly_index, 0,
+ subdiv_vertex_index);
subdiv_vertex_index++;
for (int corner = 0;
corner < coarse_poly->totloop;
@@ -1135,9 +1134,9 @@ static void subdiv_foreach_edges_all_patches_special(
const bool flip = (coarse_edge->v2 == coarse_loop->v);
int side_start_index =
start_vertex_index + num_inner_vertices_per_ptex * corner;
- for (int i = 0; i < ptex_face_resolution - 2;
- i++,
- subdiv_edge_index++)
+ for (int i = 0;
+ i < ptex_face_resolution - 2;
+ i++, subdiv_edge_index++)
{
const int v1 = (flip)
? (start_edge_vertex + (resolution - i - 3))
@@ -1240,7 +1239,7 @@ static void subdiv_foreach_loops_of_poly(
int subdiv_loop_start_index,
const int ptex_face_index,
const int coarse_poly_index,
- const int coarse_corner_index,
+ const int coarse_corner_index,
const int rotation,
/*const*/ int v0, /*const*/ int e0,
/*const*/ int v1, /*const*/ int e1,