mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
Fix a crash when dropping objects without a collision shape
This commit is contained in:
parent
21cc7483e4
commit
3277ef26da
1 changed files with 9 additions and 1 deletions
|
@ -603,6 +603,14 @@ namespace Physic
|
||||||
btTransform trans;
|
btTransform trans;
|
||||||
trans.setIdentity();
|
trans.setIdentity();
|
||||||
|
|
||||||
|
if (shape->mRaycastingShape)
|
||||||
|
shape->mRaycastingShape->getAabb(trans, min, max);
|
||||||
|
else if (shape->mCollisionShape)
|
||||||
shape->mCollisionShape->getAabb(trans, min, max);
|
shape->mCollisionShape->getAabb(trans, min, max);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
min = btVector3(0,0,0);
|
||||||
|
max = btVector3(0,0,0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue