mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-11-04 06:55:40 +00:00
fix removeConstraint for deformables, thanks to Daniel Seita for reporting the issue.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user