From 0ea1ff0ecb41ca57e8b2dff16677b14179b34583 Mon Sep 17 00:00:00 2001 From: enn0x Date: Fri, 23 Sep 2011 22:01:42 +0000 Subject: [PATCH] For some reason dynamic_cast failed with current Bullet revisions. --- panda/src/bullet/bulletCharacterControllerNode.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panda/src/bullet/bulletCharacterControllerNode.cxx b/panda/src/bullet/bulletCharacterControllerNode.cxx index 523889a7cc..b6f26cfda3 100644 --- a/panda/src/bullet/bulletCharacterControllerNode.cxx +++ b/panda/src/bullet/bulletCharacterControllerNode.cxx @@ -34,9 +34,10 @@ BulletCharacterControllerNode(BulletShape *shape, float step_height, const char // Get convex shape (for ghost object) if (!shape->is_convex()) { bullet_cat.error() << "a convex shape is required!" << endl; + return; } - btConvexShape *convex = dynamic_cast(shape->ptr()); + btConvexShape *convex = (btConvexShape *)(shape->ptr()); // Ghost object _ghost = new btPairCachingGhostObject();