fix removeConstraint for deformables, thanks to Daniel Seita for reporting the issue.

This commit is contained in:
Erwin Coumans
2020-06-30 16:39:15 -07:00
parent 40e71d8ef6
commit 4c63a5019e
@@ -11789,7 +11789,7 @@ bool PhysicsServerCommandProcessor::processCreateUserConstraintCommand(const str
if (userConstraintPtr->m_sbHandle >= 0)
{
InternalBodyHandle* sbodyHandle = m_data->m_bodyHandles.getHandle(clientCmd.m_userConstraintArguments.m_parentBodyIndex);
InternalBodyHandle* sbodyHandle = m_data->m_bodyHandles.getHandle(userConstraintPtr->m_sbHandle);
if (sbodyHandle)
{
if (sbodyHandle->m_softBody)