Fix crash in bvhtree.FromPolygons

This commit is contained in:
Campbell Barton 2016-02-12 19:12:58 +11:00
parent 3c7369164e
commit 9c21015c26
1 changed files with 1 additions and 1 deletions

View File

@ -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);