diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-02-12 11:12:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-02-12 11:12:58 +0300 |
commit | 9c21015c26564504fda20f09b510f2d81a51bbfc (patch) | |
tree | c551622508f1bfce4fee8cd0e4fda013987bb7d4 /source | |
parent | 3c7369164e0a7edc858b45298bae25c0a20ed0f8 (diff) |
Fix crash in bvhtree.FromPolygons
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/mathutils/mathutils_bvhtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/mathutils/mathutils_bvhtree.c b/source/blender/python/mathutils/mathutils_bvhtree.c index 08b1f538cf0..e2c4e7e37d9 100644 --- a/source/blender/python/mathutils/mathutils_bvhtree.c +++ b/source/blender/python/mathutils/mathutils_bvhtree.c @@ -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); |