forked from mirror/openmw-tes3mp
filled the toggleCollisionMode function. It needs the lastest change in OEngine
This commit is contained in:
parent
2aee958789
commit
102f1ee5dc
1 changed files with 5 additions and 1 deletions
|
@ -204,5 +204,9 @@ void MWScene::scaleObject (const std::string& handle, float scale)
|
|||
|
||||
void MWScene::toggleCollisionMode()
|
||||
{
|
||||
|
||||
for(std::map<std::string,OEngine::Physic::PhysicActor*>::iterator it = eng->PhysicActorMap.begin(); it != eng->PhysicActorMap.end();it++)
|
||||
{
|
||||
OEngine::Physic::PhysicActor* act = it->second;
|
||||
act->enableCollisions(!act->getCollisionMode());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue