mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-08-07 22:09:27 +00:00
Check for availability of soft body
This commit is contained in:
@@ -11791,6 +11791,8 @@ bool PhysicsServerCommandProcessor::processCreateUserConstraintCommand(const str
|
||||
delete userConstraintPtr->m_rbConstraint;
|
||||
m_data->m_userConstraints.remove(userConstraintUidRemove);
|
||||
}
|
||||
#ifndef SKIP_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD
|
||||
|
||||
if (userConstraintPtr->m_sbHandle >= 0)
|
||||
{
|
||||
InternalBodyHandle* sbodyHandle = m_data->m_bodyHandles.getHandle(clientCmd.m_userConstraintArguments.m_parentBodyIndex);
|
||||
@@ -11809,6 +11811,7 @@ bool PhysicsServerCommandProcessor::processCreateUserConstraintCommand(const str
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
serverCmd.m_userConstraintResultArgs.m_userConstraintUniqueId = userConstraintUidRemove;
|
||||
serverCmd.m_type = CMD_REMOVE_USER_CONSTRAINT_COMPLETED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user