Added debug output in case that the bullet assertion crash (see
bug 3058932). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5917 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
b223901f7a
commit
8742b8e127
@ -29,7 +29,9 @@ subject to the following restrictions:
|
||||
#include "LinearMath/btVector3.h"
|
||||
#include "LinearMath/btAlignedAllocator.h"
|
||||
|
||||
|
||||
#ifdef BT_DEBUG
|
||||
# include <iostream>
|
||||
#endif
|
||||
//http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/vclrf__m128.asp
|
||||
|
||||
|
||||
@ -351,7 +353,23 @@ public:
|
||||
{
|
||||
|
||||
btAssert(m_useQuantization);
|
||||
|
||||
#ifdef BT_DEBUG
|
||||
if( (point.getX() > m_bvhAabbMax.getX() ) ||
|
||||
(point.getY() > m_bvhAabbMax.getY() ) ||
|
||||
(point.getZ() > m_bvhAabbMax.getZ() ) ||
|
||||
(point.getX() < m_bvhAabbMin.getX() ) ||
|
||||
(point.getY() < m_bvhAabbMin.getY() ) ||
|
||||
(point.getZ() < m_bvhAabbMin.getZ() ) )
|
||||
{
|
||||
std::cout << "Bullet Assertion error "
|
||||
<< point.getX() << " "<<point.getY()<<" "<<point.getZ()
|
||||
<< " "<<m_bvhAabbMax.getX()<<" "<< m_bvhAabbMax.getY()
|
||||
<< " " <<m_bvhAabbMax.getZ()<<" "
|
||||
<< m_bvhAabbMin.getX()<<" "<< m_bvhAabbMin.getX()
|
||||
<< " "<< m_bvhAabbMin.getX()<<" "
|
||||
<< isMax;
|
||||
}
|
||||
#endif
|
||||
btAssert(point.getX() <= m_bvhAabbMax.getX());
|
||||
btAssert(point.getY() <= m_bvhAabbMax.getY());
|
||||
btAssert(point.getZ() <= m_bvhAabbMax.getZ());
|
||||
|
Loading…
x
Reference in New Issue
Block a user