mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
fix indexing in tetrahedra
This commit is contained in:
parent
bf7b107aec
commit
431a71ebad
@ -3872,7 +3872,7 @@ const char* btSoftBody::serialize(void* dataBuffer, class btSerializer* serializ
|
||||
for (int j = 0; j < 4; j++)
|
||||
{
|
||||
m_tetras[i].m_c0[j].serializeFloat(memPtr->m_c0[j]);
|
||||
memPtr->m_nodeIndices[j] = m_tetras[j].m_n[j] ? m_tetras[j].m_n[j] - &m_nodes[0] : -1;
|
||||
memPtr->m_nodeIndices[j] = m_tetras[i].m_n[j] ? m_tetras[i].m_n[j] - &m_nodes[0] : -1;
|
||||
}
|
||||
memPtr->m_c1 = m_tetras[i].m_c1;
|
||||
memPtr->m_c2 = m_tetras[i].m_c2;
|
||||
|
Loading…
Reference in New Issue
Block a user