forked from bartvdbraak/blender
remove ray sensors own logic manager (now stored in parent class) + other minor changes.
This commit is contained in:
parent
64a093ea77
commit
c8b7384c4b
@ -838,8 +838,10 @@ RAS_MeshObject* BL_ConvertMesh(Mesh* mesh, Object* blenderobj, KX_Scene* scene,
|
||||
if (mface->v4)
|
||||
tan3 = tangent[f*4 + 3];
|
||||
}
|
||||
|
||||
ma = give_current_material(blenderobj, mface->mat_nr+1);
|
||||
if(blenderobj)
|
||||
ma = give_current_material(blenderobj, mface->mat_nr+1);
|
||||
else
|
||||
ma = mesh->mat ? mesh->mat[mface->mat_nr]:NULL;
|
||||
|
||||
{
|
||||
bool visible = true;
|
||||
|
@ -142,6 +142,8 @@ KX_GameObject::~KX_GameObject()
|
||||
(*contit)->ClearObject();
|
||||
}
|
||||
m_pSGNode->SetSGClientObject(NULL);
|
||||
|
||||
/* m_pSGNode is freed in KX_Scene::RemoveNodeDestructObject */
|
||||
}
|
||||
if (m_pGraphicController)
|
||||
{
|
||||
|
@ -37,8 +37,6 @@ using namespace std;
|
||||
|
||||
class KX_RayEventManager : public SCA_EventManager
|
||||
{
|
||||
|
||||
class SCA_LogicManager* m_logicmgr;
|
||||
public:
|
||||
KX_RayEventManager(class SCA_LogicManager* logicmgr)
|
||||
: SCA_EventManager(logicmgr, RAY_EVENTMGR)
|
||||
|
@ -593,7 +593,7 @@ bool CcdPhysicsController::ReplaceControllerShape(btCollisionShape *newShape)
|
||||
for(int i= 0; i < obarr.size(); i++) {
|
||||
ob= obarr[i];
|
||||
if (ob->getCollisionShape() == newShape); {
|
||||
proxy = obarr[i]->getBroadphaseHandle();
|
||||
proxy = ob->getBroadphaseHandle();
|
||||
|
||||
if(proxy)
|
||||
dw->getPairCache()->cleanProxyFromPairs(proxy,dw->getDispatcher());
|
||||
|
Loading…
Reference in New Issue
Block a user