Don't reset user data on SyncBodyInfo()

This commit is contained in:
Tigran Gasparian
2019-08-08 13:20:44 +02:00
parent cf25b6183d
commit ebe6d2df86
2 changed files with 4 additions and 4 deletions

View File

@@ -294,8 +294,6 @@ void PhysicsClientSharedMemory::clearCachedBodies()
}
}
m_data->m_bodyJointMap.clear();
m_data->m_userDataHandleLookup.clear();
m_data->m_userDataMap.clear();
}
void PhysicsClientSharedMemory::resetData()
@@ -304,6 +302,8 @@ void PhysicsClientSharedMemory::resetData()
m_data->m_debugLinesTo.clear();
m_data->m_debugLinesColor.clear();
m_data->m_userConstraintInfoMap.clear();
m_data->m_userDataMap.clear();
m_data->m_userDataHandleLookup.clear();
clearCachedBodies();
}
void PhysicsClientSharedMemory::setSharedMemoryKey(int key)