mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 14:10:11 +00:00
Merge pull request #1650 from JanMatas/fix-softbody-leak
Fix Large memory leak in bullet Softbody
This commit is contained in:
commit
d32e3e51f6
@ -9693,7 +9693,10 @@ void PhysicsServerCommandProcessor::stepSimulationRealTime(double dtInSec,const
|
||||
void PhysicsServerCommandProcessor::resetSimulation()
|
||||
{
|
||||
//clean up all data
|
||||
|
||||
if (m_data && m_data->m_dynamicsWorld)
|
||||
{
|
||||
m_data->m_dynamicsWorld->getWorldInfo().m_sparsesdf.Reset();
|
||||
}
|
||||
if (m_data && m_data->m_guiHelper)
|
||||
{
|
||||
m_data->m_guiHelper->removeAllGraphicsInstances();
|
||||
|
Loading…
Reference in New Issue
Block a user