From 81e28b8802a65a3efd6410e75a3fb92a21ed69a3 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Wed, 23 Apr 2014 13:59:04 -0700 Subject: BGE Cleanup: Removing the empty KX_ClearBulletSharedShapes() function --- source/gameengine/Converter/KX_BlenderSceneConverter.cpp | 3 --- source/gameengine/Ketsji/KX_ConvertPhysicsObject.h | 3 +-- source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp | 5 ----- 3 files changed, 1 insertion(+), 10 deletions(-) (limited to 'source') diff --git a/source/gameengine/Converter/KX_BlenderSceneConverter.cpp b/source/gameengine/Converter/KX_BlenderSceneConverter.cpp index 854e9fe7327..6b7a53c9bf7 100644 --- a/source/gameengine/Converter/KX_BlenderSceneConverter.cpp +++ b/source/gameengine/Converter/KX_BlenderSceneConverter.cpp @@ -190,9 +190,6 @@ KX_BlenderSceneConverter::~KX_BlenderSceneConverter() } m_meshobjects.clear(); -#ifdef WITH_BULLET - KX_ClearBulletSharedShapes(); -#endif /* free any data that was dynamically loaded */ while (m_DynamicMaggie.size() != 0) diff --git a/source/gameengine/Ketsji/KX_ConvertPhysicsObject.h b/source/gameengine/Ketsji/KX_ConvertPhysicsObject.h index 5e2556bd59b..4f341d793bb 100644 --- a/source/gameengine/Ketsji/KX_ConvertPhysicsObject.h +++ b/source/gameengine/Ketsji/KX_ConvertPhysicsObject.h @@ -47,8 +47,7 @@ void KX_ConvertBulletObject(class KX_GameObject* gameobj, int activeLayerBitInfo, bool isCompoundChild, bool hasCompoundChildren); - -void KX_ClearBulletSharedShapes(); + bool KX_ReInstanceBulletShapeFromMesh(KX_GameObject *gameobj, KX_GameObject *from_gameobj, RAS_MeshObject* from_meshobj); #endif diff --git a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp index f1a52e1790a..5791c9f3a7a 100644 --- a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp +++ b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp @@ -567,11 +567,6 @@ void KX_ConvertBulletObject( class KX_GameObject* gameobj, } - -void KX_ClearBulletSharedShapes() -{ -} - /* Refresh the physics object from either an object or a mesh. * gameobj must be valid * from_gameobj and from_meshobj can be NULL -- cgit v1.2.3