only if SPD is enabled

This commit is contained in:
Erwin Coumans
2019-07-21 22:03:23 -07:00
parent 8f220c1b23
commit b2825724d4

View File

@@ -2849,12 +2849,13 @@ void PhysicsServerCommandProcessor::deleteDynamicsWorld()
delete m_data->m_collisionConfiguration;
m_data->m_collisionConfiguration = 0;
m_data->m_userConstraintUIDGenerator = 1;
#ifdef STATIC_LINK_SPD_PLUGIN
for (int i = 0; i < m_data->m_rbdModels.size(); i++)
{
delete *(m_data->m_rbdModels.getAtIndex(i));
}
m_data->m_rbdModels.clear();
#endif//STATIC_LINK_SPD_PLUGIN
}
bool PhysicsServerCommandProcessor::supportsJointMotor(btMultiBody* mb, int mbLinkIndex)