Bug in btBulletWorldImporter: bad BT_USE_DOUBLE_PRECISION

xris
Posts: 13
Joined: Wed Jun 22, 2011 3:07 pm

Bug in btBulletWorldImporter: bad BT_USE_DOUBLE_PRECISION

Post by xris »

I found this code in the btBulletWorldImporter.cpp...

The DOUBLE_PRECISION precompile switch looks like it's backwards.

Code: Select all

#ifdef BT_USE_DOUBLE_PRECISION
							if (convexData->m_unscaledPointsDoublePtr)
								tmpPoints[i].deSerialize(convexData->m_unscaledPointsDoublePtr[i]);
							if (convexData->m_unscaledPointsFloatPtr)
								tmpPoints[i].deSerializeFloat(convexData->m_unscaledPointsFloatPtr[i]);
#else
							if (convexData->m_unscaledPointsFloatPtr)
								tmpPoints[i].deSerialize(convexData->m_unscaledPointsFloatPtr[i]);
							if (convexData->m_unscaledPointsDoublePtr)
								tmpPoints[i].deSerializeDouble(convexData->m_unscaledPointsDoublePtr[i]);
#endif //BT_USE_DOUBLE_PRECISION

Is this the desired behaviour, or a type-o?

thanks in advance,
xris
xris
Posts: 13
Joined: Wed Jun 22, 2011 3:07 pm

Re: Bug in btBulletWorldImporter: bad BT_USE_DOUBLE_PRECISIO

Post by xris »

uhm.. never mind. I misread the code.

sorry about that.

xris