Merge pull request #248 from erwincoumans/master
fix btInMemorySerializer but disable btInMemorySerializer by default
This commit is contained in:
@@ -669,6 +669,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
///In general it is best to use btDefaultSerializer,
|
||||
///in particular when writing the data to disk or sending it over the network.
|
||||
///The btInMemorySerializer is experimental and only suitable in a few cases.
|
||||
@@ -797,7 +798,7 @@ struct btInMemorySerializer : public btDefaultSerializer
|
||||
case BT_CONSTRAINT_CODE:
|
||||
{
|
||||
#ifdef BT_USE_DOUBLE_PRECISION
|
||||
m_arrays.m_constraintDataDouble.push_back(btTypedConstraintDoubleData*)chunk->m_oldPtr);
|
||||
m_arrays.m_constraintDataDouble.push_back((btTypedConstraintDoubleData*)chunk->m_oldPtr);
|
||||
#else
|
||||
m_arrays.m_constraintDataFloat.push_back((btTypedConstraintFloatData*)chunk->m_oldPtr);
|
||||
#endif
|
||||
@@ -806,7 +807,7 @@ struct btInMemorySerializer : public btDefaultSerializer
|
||||
case BT_QUANTIZED_BVH_CODE:
|
||||
{
|
||||
#ifdef BT_USE_DOUBLE_PRECISION
|
||||
m_arrays.m_bvhsFloat.push_back((btQuantizedBvhDoubleData*) chunk->m_oldPtr);
|
||||
m_arrays.m_bvhsDouble.push_back((btQuantizedBvhDoubleData*) chunk->m_oldPtr);
|
||||
#else
|
||||
m_arrays.m_bvhsFloat.push_back((btQuantizedBvhFloatData*) chunk->m_oldPtr);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user