Fix T45009: Bad 'tri area computation' code in knife tool.

Was causing wrong selection of 'outside' face.
This commit is contained in:
Bastien Montagne 2015-06-10 16:35:52 +02:00
parent 91e767c99c
commit ec3c2d3be9
Notes: blender-bot 2023-02-14 09:01:33 +01:00
Referenced by issue #45009, some wrong edges selected after knife project
1 changed files with 1 additions and 3 deletions

View File

@ -3371,9 +3371,7 @@ static void edbm_mesh_knife_face_point(BMFace *f, float r_cent[3])
const float *p3 = loops[index[j][2]]->v->co;
float area;
float cross[3];
cross_v3_v3v3(cross, p2, p3);
area = fabsf(dot_v3v3(p1, cross));
area = area_squared_tri_v3(p1, p2, p3);
if (area > area_best) {
j_best = j;
area_best = area;