fix issue with serialization (only happens when using the BT_INTERNAL_UPDATE_SERIALIZATION_STRUCTURES option)
This commit is contained in:
@@ -261,7 +261,6 @@ void btBulletFile::parse(bool verboseDumpAllTypes)
|
|||||||
delete m_DnaCopy;
|
delete m_DnaCopy;
|
||||||
m_DnaCopy = (char*)btAlignedAlloc(sBulletDNAlen64,16);
|
m_DnaCopy = (char*)btAlignedAlloc(sBulletDNAlen64,16);
|
||||||
memcpy(m_DnaCopy,sBulletDNAstr64,sBulletDNAlen64);
|
memcpy(m_DnaCopy,sBulletDNAstr64,sBulletDNAlen64);
|
||||||
mMemoryDNA->init(m_DnaCopy,sBulletDNAlen64);
|
|
||||||
parseInternal(verboseDumpAllTypes,(char*)sBulletDNAstr64,sBulletDNAlen64);
|
parseInternal(verboseDumpAllTypes,(char*)sBulletDNAstr64,sBulletDNAlen64);
|
||||||
#else
|
#else
|
||||||
btAssert(0);
|
btAssert(0);
|
||||||
@@ -275,7 +274,6 @@ void btBulletFile::parse(bool verboseDumpAllTypes)
|
|||||||
delete m_DnaCopy;
|
delete m_DnaCopy;
|
||||||
m_DnaCopy = (char*)btAlignedAlloc(sBulletDNAlen,16);
|
m_DnaCopy = (char*)btAlignedAlloc(sBulletDNAlen,16);
|
||||||
memcpy(m_DnaCopy,sBulletDNAstr,sBulletDNAlen);
|
memcpy(m_DnaCopy,sBulletDNAstr,sBulletDNAlen);
|
||||||
mMemoryDNA->init(m_DnaCopy,sBulletDNAlen);
|
|
||||||
parseInternal(verboseDumpAllTypes,m_DnaCopy,sBulletDNAlen);
|
parseInternal(verboseDumpAllTypes,m_DnaCopy,sBulletDNAlen);
|
||||||
#else
|
#else
|
||||||
btAssert(0);
|
btAssert(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user