mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 12:39:53 +00:00
Collision fix
This commit is contained in:
parent
0c27869089
commit
60fffec345
@ -480,7 +480,7 @@ namespace Physic
|
||||
#endif
|
||||
|
||||
bool needDelete = false;
|
||||
if (btBvhTriangleMeshShape* triangleShape = dynamic_cast<btBvhTriangleMeshShape*>(shape->mCollisionShape))
|
||||
if (btBvhTriangleMeshShape* triangleShape = dynamic_cast<btBvhTriangleMeshShape*>(collisionShape))
|
||||
{
|
||||
btScaledBvhTriangleMeshShape* scaled = new btScaledBvhTriangleMeshShape(triangleShape, btVector3(scale,scale,scale));
|
||||
collisionShape = scaled;
|
||||
|
Loading…
x
Reference in New Issue
Block a user