Fix crash in bvhtree.FromPolygons
This commit is contained in:
@@ -777,7 +777,7 @@ static PyObject *C_BVHTree_FromPolygons(PyObject *UNUSED(cls), PyObject *args, P
|
||||
axis_dominant_v3_to_m3_negate(axis_mat, normal);
|
||||
|
||||
for (j = 0; j < plink->len; j++) {
|
||||
mul_v2_m3v3(proj_coords[i], axis_mat, coords[plink->poly[j]]);
|
||||
mul_v2_m3v3(proj_coords[j], axis_mat, coords[plink->poly[j]]);
|
||||
}
|
||||
|
||||
BLI_polyfill_calc_arena((const float (*)[2])proj_coords, plink->len, 1, tris_offset, pf_arena);
|
||||
|
||||
Reference in New Issue
Block a user