Use correct size for BVH insertion

This commit is contained in:
Campbell Barton
2015-08-27 16:12:21 +10:00
parent a8be746609
commit 72aadc3597

View File

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