mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Merge pull request #1362 from Azaezel/BulletBreak2
Removes fatal assertion on duplicated object collisions (meshroads, primarily)
This commit is contained in:
commit
0ed74bc8f5
1 changed files with 2 additions and 3 deletions
|
|
@ -434,9 +434,8 @@ void BtPlayer::findContact( SceneObject **contactObject,
|
|||
if ( other == mGhostObject )
|
||||
other = (btCollisionObject*)pair.m_pProxy1->m_clientObject;
|
||||
|
||||
AssertFatal( !outOverlapObjects->contains( PhysicsUserData::getObject( other->getUserPointer() ) ),
|
||||
"Got multiple pairs of the same object!" );
|
||||
outOverlapObjects->push_back( PhysicsUserData::getObject( other->getUserPointer() ) );
|
||||
if (!outOverlapObjects->contains(PhysicsUserData::getObject(other->getUserPointer())))
|
||||
outOverlapObjects->push_back( PhysicsUserData::getObject( other->getUserPointer() ) );
|
||||
|
||||
if ( other->getCollisionFlags() & btCollisionObject::CF_NO_CONTACT_RESPONSE )
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue