Don't reset user data on SyncBodyInfo()
This commit is contained in:
@@ -294,8 +294,6 @@ void PhysicsClientSharedMemory::clearCachedBodies()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_data->m_bodyJointMap.clear();
|
m_data->m_bodyJointMap.clear();
|
||||||
m_data->m_userDataHandleLookup.clear();
|
|
||||||
m_data->m_userDataMap.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PhysicsClientSharedMemory::resetData()
|
void PhysicsClientSharedMemory::resetData()
|
||||||
@@ -304,6 +302,8 @@ void PhysicsClientSharedMemory::resetData()
|
|||||||
m_data->m_debugLinesTo.clear();
|
m_data->m_debugLinesTo.clear();
|
||||||
m_data->m_debugLinesColor.clear();
|
m_data->m_debugLinesColor.clear();
|
||||||
m_data->m_userConstraintInfoMap.clear();
|
m_data->m_userConstraintInfoMap.clear();
|
||||||
|
m_data->m_userDataMap.clear();
|
||||||
|
m_data->m_userDataHandleLookup.clear();
|
||||||
clearCachedBodies();
|
clearCachedBodies();
|
||||||
}
|
}
|
||||||
void PhysicsClientSharedMemory::setSharedMemoryKey(int key)
|
void PhysicsClientSharedMemory::setSharedMemoryKey(int key)
|
||||||
|
|||||||
@@ -143,6 +143,8 @@ void PhysicsDirect::resetData()
|
|||||||
m_data->m_debugLinesTo.clear();
|
m_data->m_debugLinesTo.clear();
|
||||||
m_data->m_debugLinesColor.clear();
|
m_data->m_debugLinesColor.clear();
|
||||||
m_data->m_userConstraintInfoMap.clear();
|
m_data->m_userConstraintInfoMap.clear();
|
||||||
|
m_data->m_userDataMap.clear();
|
||||||
|
m_data->m_userDataHandleLookup.clear();
|
||||||
clearCachedBodies();
|
clearCachedBodies();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -157,8 +159,6 @@ void PhysicsDirect::clearCachedBodies()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_data->m_bodyJointMap.clear();
|
m_data->m_bodyJointMap.clear();
|
||||||
m_data->m_userDataMap.clear();
|
|
||||||
m_data->m_userDataHandleLookup.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// return true if connection succesfull, can also check 'isConnected'
|
// return true if connection succesfull, can also check 'isConnected'
|
||||||
|
|||||||
Reference in New Issue
Block a user