Fix utility function used for wrong vector size

Both source and destination are 2D vectors.
This commit is contained in:
2019-12-23 09:33:17 +01:00
parent b888711e50
commit 708045eb40

View File

@@ -1771,7 +1771,7 @@ static void add_edge_constraint(
vb = t->next->vert; vb = t->next->vert;
/* Get curco; cdata should have data from last time through the loop still. */ /* Get curco; cdata should have data from last time through the loop still. */
if (cdata.lambda == 0.0) { if (cdata.lambda == 0.0) {
copy_v3_v3_db(curco, cdata.vert->co); copy_v2_v2_db(curco, cdata.vert->co);
} }
else { else {
interp_v2_v2v2_db(curco, cdata.in->vert->co, cdata.in->next->vert->co, lambda); interp_v2_v2v2_db(curco, cdata.in->vert->co, cdata.in->next->vert->co, lambda);