mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-06-12 10:13:54 +00:00
bodyUniqueId can be 0
This commit is contained in:
@@ -8563,7 +8563,7 @@ bool PhysicsServerCommandProcessor::processLoadSoftBodyCommand(const struct Shar
|
||||
|
||||
int bodyUniqueId = -1;
|
||||
bool completedOk = processDeformable(deformable, initialPos, initialOrn, &bodyUniqueId, bufferServerToClient, bufferSizeInBytes, scale, use_self_collision);
|
||||
if (completedOk && bodyUniqueId > 0)
|
||||
if (completedOk && bodyUniqueId >= 0)
|
||||
{
|
||||
m_data->m_guiHelper->autogenerateGraphicsObjects(m_data->m_dynamicsWorld);
|
||||
serverStatusOut.m_type = CMD_LOAD_SOFT_BODY_COMPLETED;
|
||||
|
||||
Reference in New Issue
Block a user