diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-08-27 09:12:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-08-27 10:45:56 +0300 |
commit | 72aadc35977aa41380f0fdaf0ddd85e5988d907a (patch) | |
tree | adfa3cd373af2a11490d70321c0ed4e53fc6148d | |
parent | a8be746609adc81c3a93f97e5ecc7e5417471289 (diff) |
Use correct size for BVH insertion
-rw-r--r-- | source/blender/blenkernel/intern/bvhutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/bvhutils.c b/source/blender/blenkernel/intern/bvhutils.c index fa2fcd97ec3..626be0eaf4e 100644 --- a/source/blender/blenkernel/intern/bvhutils.c +++ b/source/blender/blenkernel/intern/bvhutils.c @@ -538,7 +538,7 @@ BVHTree *bvhtree_from_mesh_edges(BVHTreeFromMesh *data, DerivedMesh *dm, float e tree = BLI_bvhtree_new(numEdges, epsilon, tree_type, axis); if (tree != NULL) { for (i = 0; i < numEdges; i++) { - float co[4][3]; + float co[2][3]; copy_v3_v3(co[0], vert[edge[i].v1].co); copy_v3_v3(co[1], vert[edge[i].v2].co); @@ -916,7 +916,7 @@ static BVHTree *bvhtree_from_mesh_looptri_create_tree( else { if (vert && looptri) { for (i = 0; i < looptri_num; i++) { - float co[4][3]; + float co[3][3]; if (mask && !BLI_BITMAP_TEST_BOOL(mask, i)) { continue; } |