Verified Commit d338645a authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: fix bug in buildConvexRepresentation

parent 3e4bdfd7
Pipeline #15989 passed with stage
in 27 minutes and 7 seconds
......@@ -139,7 +139,7 @@ void BVHModelBase::buildConvexRepresentation(bool share_memory)
polygons = new Triangle[num_tris];
memcpy(polygons, tri_indices, sizeof(Triangle) * (size_t)num_tris);
}
convex.reset(new Convex<Triangle>(!share_memory, points, num_vertices, polygons, num_vertices));
convex.reset(new Convex<Triangle>(!share_memory, points, num_vertices, polygons, num_tris));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment