Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/subdiv_foreach.c
| Show First 20 Lines • Show All 1,760 Lines • ▼ Show 20 Lines | for (int i = 0; i < resolution; i++) { | ||||
| } | } | ||||
| else if (i == resolution - 1) { | else if (i == resolution - 1) { | ||||
| subdiv_vertex_index = subdiv_v2_index; | subdiv_vertex_index = subdiv_v2_index; | ||||
| } | } | ||||
| else { | else { | ||||
| subdiv_vertex_index = subdiv_start_vertex + (i - 1); | subdiv_vertex_index = subdiv_start_vertex + (i - 1); | ||||
| } | } | ||||
| ctx->foreach_context->vertex_of_loose_edge( | ctx->foreach_context->vertex_of_loose_edge( | ||||
| ctx->foreach_context, tls->userdata_chunk, coarse_edge_index, u, subdiv_vertex_index); | ctx->foreach_context, tls->userdata_chunk, coarse_edge_index, i, u, subdiv_vertex_index); | ||||
| } | } | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Subdivision process entry points | /** \name Subdivision process entry points | ||||
| * \{ */ | * \{ */ | ||||
| ▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines | |||||