Fix BMesh quad tangent calculation failure to normalize

This impacted the Python method BMFace.calc_tangent_edge_pair()
This commit is contained in:
Campbell Barton
2025-01-17 11:31:28 +11:00
parent f6f1d610d8
commit bb92a6fbef

View File

@@ -384,6 +384,7 @@ void BM_face_calc_tangent_edge_pair(const BMFace *f, float r_tangent[3])
if (len_squared_v3(r_tangent) < len_squared_v3(vec)) {
copy_v3_v3(r_tangent, vec);
}
normalize_v3(r_tangent);
}
else {
/* For ngons use two longest disconnected edges */