From 52439f3414485f9a18595d062291df274ec0180f Mon Sep 17 00:00:00 2001 From: Irlan Date: Mon, 24 Jun 2019 18:39:10 -0300 Subject: [PATCH] Bugfix --- src/bounce/cloth/cloth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bounce/cloth/cloth.cpp b/src/bounce/cloth/cloth.cpp index abc9d02..5f2c825 100644 --- a/src/bounce/cloth/cloth.cpp +++ b/src/bounce/cloth/cloth.cpp @@ -519,7 +519,7 @@ void b3Cloth::Solve(float32 dt, const b3Vec3& gravity, u32 velocityIterations, u solverDef.stack = &m_stackAllocator; solverDef.particleCapacity = m_particleList.m_count; solverDef.forceCapacity = m_forceList.m_count; - solverDef.bodyContactCapacity = m_particleList.m_count; + solverDef.bodyContactCapacity = m_contactManager.m_particleBodyContactList.m_count; solverDef.triangleContactCapacity = m_contactManager.m_particleTriangleContactList.m_count; b3ClothSolver solver(solverDef);