From 60fffec3452c68ef2675a7c573af0436c051a6d4 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 5 May 2015 16:08:01 +0200 Subject: [PATCH] Collision fix --- 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 22312e3bc..17d4aeab5 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(shape->mCollisionShape)) + if (btBvhTriangleMeshShape* triangleShape = dynamic_cast(collisionShape)) { btScaledBvhTriangleMeshShape* scaled = new btScaledBvhTriangleMeshShape(triangleShape, btVector3(scale,scale,scale)); collisionShape = scaled;