mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-12 13:13:27 +00:00
filled the toggleCollisionMode function. It needs the lastest change in OEngine
This commit is contained in:
parent
2aee958789
commit
102f1ee5dc
@ -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…
x
Reference in New Issue
Block a user