summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuyuan Kelly Fu <fuchuyuan@google.com>2022-03-02 21:43:01 -0800
committerChuyuan Kelly Fu <fuchuyuan@google.com>2022-03-02 21:43:01 -0800
commit3088db22a2d9c452162bb65e00e623b06760973c (patch)
tree4e43124dfad7f0391fe73ff61fce7c3041178ea2
parent60b6df94d921e94a315ecb9dae213e0e8a14a34a (diff)
downloadbullet3-3088db22a2d9c452162bb65e00e623b06760973c.tar.gz
bug fix
-rw-r--r--examples/SharedMemory/PhysicsServerCommandProcessor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp
index 4f65462a5..2f5040139 100644
--- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp
+++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp
@@ -5615,11 +5615,11 @@ bool PhysicsServerCommandProcessor::processRequestMeshDataCommand(const struct S
}
bool separateRenderMesh = false;
- if ((flags & B3_MESH_DATA_SIMULATION_MESH) == 0)
+ if ((clientCmd.m_updateFlags & B3_MESH_DATA_SIMULATION_MESH) == 0)
{
separateRenderMesh = (psb->m_renderNodes.size() != 0);
}
- bool requestVelocity = flags & B3_MESH_DATA_SIMULATION_MESH_VELOCITY;
+ bool requestVelocity = clientCmd.m_updateFlags & B3_MESH_DATA_SIMULATION_MESH_VELOCITY;
int numVertices = separateRenderMesh ? psb->m_renderNodes.size() : psb->m_nodes.size();
int maxNumVertices = bufferSizeInBytes / totalBytesPerVertex - 1;