Fix T67800: Incorrect behavior of simple Subdivision Surface

Stupid typo in an original fix, need to operate in 3D, not in 2D.
This commit is contained in:
Sergey Sharybin 2019-07-29 11:26:16 +02:00
parent 0528ef0b4d
commit 7ac0c87473
Notes: blender-bot 2023-02-14 02:30:10 +01:00
Referenced by issue #67800, Simple Subdivision Surface modifier on loose edges behaves strangely
1 changed files with 1 additions and 1 deletions

View File

@ -1098,7 +1098,7 @@ static void subdiv_mesh_vertex_of_loose_edge(const struct SubdivForeachContext *
const MVert *coarse_mvert = coarse_mesh->mvert;
const MVert *vert_1 = &coarse_mvert[coarse_edge->v1];
const MVert *vert_2 = &coarse_mvert[coarse_edge->v2];
interp_v2_v2v2(subdiv_vertex->co, vert_1->co, vert_2->co, u);
interp_v3_v3v3(subdiv_vertex->co, vert_1->co, vert_2->co, u);
}
else {
float points[4][3];