Disable quantization to improve load times, thanks Joerg for the idea
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10614 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
6d7d52f993
commit
f230855b3d
@ -104,11 +104,11 @@ void TriangleMesh::createCollisionShape(bool create_collision_object, const char
|
||||
if (bhv == NULL)
|
||||
{
|
||||
fprintf(stderr, "[TriangleMesh] WARNING, failed to load serialized BHV\n");
|
||||
bhv_triangle_mesh = new btBvhTriangleMeshShape(&m_mesh, true /* useQuantizedAabbCompression */);
|
||||
bhv_triangle_mesh = new btBvhTriangleMeshShape(&m_mesh, false /* useQuantizedAabbCompression */);
|
||||
}
|
||||
else
|
||||
{
|
||||
bhv_triangle_mesh = new btBvhTriangleMeshShape(&m_mesh, true /* useQuantizedAabbCompression */,
|
||||
bhv_triangle_mesh = new btBvhTriangleMeshShape(&m_mesh, false /* useQuantizedAabbCompression */,
|
||||
false /* buildBvh */);
|
||||
bhv_triangle_mesh->setOptimizedBvh( bhv );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user