1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-13 12:40:04 +00:00

Revert "Collision fix"

This reverts commit 60fffec3452c68ef2675a7c573af0436c051a6d4.
This commit is contained in:
Marc Zinnschlag 2015-05-10 13:32:01 +02:00
parent 53c3df16e5
commit e4ffb985a1

View File

@ -480,7 +480,7 @@ namespace Physic
//#endif
bool needDelete = false;
if (btBvhTriangleMeshShape* triangleShape = dynamic_cast<btBvhTriangleMeshShape*>(collisionShape))
if (btBvhTriangleMeshShape* triangleShape = dynamic_cast<btBvhTriangleMeshShape*>(shape->mCollisionShape))
{
btScaledBvhTriangleMeshShape* scaled = new btScaledBvhTriangleMeshShape(triangleShape, btVector3(scale,scale,scale));
collisionShape = scaled;