mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 06:45:35 +00:00
fix: NPCs were not added to physics system
This commit is contained in:
parent
9946bb36f7
commit
0866e4d4fe
2 changed files with 2 additions and 4 deletions
|
@ -218,8 +218,7 @@ void ExteriorCellRender::insertObjectPhysics()
|
||||||
|
|
||||||
void ExteriorCellRender::insertActorPhysics()
|
void ExteriorCellRender::insertActorPhysics()
|
||||||
{
|
{
|
||||||
if (!mInsertMesh.empty())
|
mScene.addActor (mInsert->getName(), mInsertMesh, mInsert->getPosition());
|
||||||
mScene.addActor (mInsert->getName(), mInsertMesh, mInsert->getPosition());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// insert a light related to the most recent insertBegin call.
|
// insert a light related to the most recent insertBegin call.
|
||||||
|
|
|
@ -201,8 +201,7 @@ void InteriorCellRender::insertObjectPhysics()
|
||||||
|
|
||||||
void InteriorCellRender::insertActorPhysics()
|
void InteriorCellRender::insertActorPhysics()
|
||||||
{
|
{
|
||||||
if (!mInsertMesh.empty())
|
scene.addActor (insert->getName(), mInsertMesh, insert->getPosition());
|
||||||
scene.addActor (insert->getName(), mInsertMesh, insert->getPosition());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// insert a light related to the most recent insertBegin call.
|
// insert a light related to the most recent insertBegin call.
|
||||||
|
|
Loading…
Reference in a new issue