| 1254 | } |
| 1255 | |
| 1256 | void CPHJoint::SetShell(CPHShell* p) |
| 1257 | { |
| 1258 | if (!m_joint || !pShell) |
| 1259 | { |
| 1260 | pShell = p; |
| 1261 | return; |
| 1262 | } |
| 1263 | if (pShell != p) |
| 1264 | { |
| 1265 | pShell->Island().RemoveJoint(m_joint); |
| 1266 | p->Island().AddJoint(m_joint); |
| 1267 | if (m_joint1) |
| 1268 | { |
| 1269 | pShell->Island().RemoveJoint(m_joint1); |
| 1270 | p->Island().AddJoint(m_joint1); |
| 1271 | } |
| 1272 | pShell = p; |
| 1273 | } |
| 1274 | } |
| 1275 | void CPHJoint::ClearDestroyInfo() { xr_delete(m_destroy_info); } |
no test coverage detected