[Bf-blender-cvs] [9c21015] master: Fix crash in bvhtree.FromPolygons

Campbell Barton noreply at git.blender.org
Fri Feb 12 09:21:17 CET 2016


Commit: 9c21015c26564504fda20f09b510f2d81a51bbfc
Author: Campbell Barton
Date:   Fri Feb 12 19:12:58 2016 +1100
Branches: master
https://developer.blender.org/rB9c21015c26564504fda20f09b510f2d81a51bbfc

Fix crash in bvhtree.FromPolygons

===================================================================

M	source/blender/python/mathutils/mathutils_bvhtree.c

===================================================================

diff --git a/source/blender/python/mathutils/mathutils_bvhtree.c b/source/blender/python/mathutils/mathutils_bvhtree.c
index 08b1f53..e2c4e7e 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);




More information about the Bf-blender-cvs mailing list