From e4ffb985a153b1b4cc3a1c6c44ce4ba27d7b7170 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Sun, 10 May 2015 13:32:01 +0200 Subject: [PATCH] Revert "Collision fix" This reverts commit 60fffec3452c68ef2675a7c573af0436c051a6d4. --- libs/openengine/bullet/physic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/openengine/bullet/physic.cpp b/libs/openengine/bullet/physic.cpp index cf7dea1db..c0da03651 100644 --- a/libs/openengine/bullet/physic.cpp +++ b/libs/openengine/bullet/physic.cpp @@ -480,7 +480,7 @@ namespace Physic //#endif bool needDelete = false; - if (btBvhTriangleMeshShape* triangleShape = dynamic_cast(collisionShape)) + if (btBvhTriangleMeshShape* triangleShape = dynamic_cast(shape->mCollisionShape)) { btScaledBvhTriangleMeshShape* scaled = new btScaledBvhTriangleMeshShape(triangleShape, btVector3(scale,scale,scale)); collisionShape = scaled;