Sorry for the lack of updates, I am preparing Bullet 3.x initial release and get back to merging Bullet 2.x and Bullet 3.x afterwards.

fix some crash in btSoftBody, related to running out-of-memory. You can configure the default maximum memory allocation for the signed distance field using worldInfo->m_sparsesdf.Initialize(hash, maxAllocation);
fix 'exploding' btSoftBody, related to very small masses. You can configure maximum displacement per frame using worldInfo->m_maxDisplacement 
avoid some crash in the world importer
This commit is contained in:
erwin.coumans@gmail.com
2013-04-22 19:00:58 +00:00
parent 33688fc011
commit 9abd0b6029
4 changed files with 40 additions and 8 deletions

View File

@@ -45,13 +45,14 @@ bool btBulletWorldImporter::loadFile( const char* fileName, const char* preSwapF
bool result = loadFileFromMemory(bulletFile2);
//now you could save the file in 'native' format using
//bulletFile2->writeFile("native.bullet");
if (preSwapFilenameOut)
if (result)
{
bulletFile2->preSwap();
bulletFile2->writeFile(preSwapFilenameOut);
if (preSwapFilenameOut)
{
bulletFile2->preSwap();
bulletFile2->writeFile(preSwapFilenameOut);
}
}
delete bulletFile2;
return result;