1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 09:15:38 +00:00

Only add enabled objects to the scene

This commit is contained in:
Evil Eye 2021-09-27 22:23:00 +02:00
parent e760a6c7e6
commit 77a23dab09
2 changed files with 3 additions and 1 deletions

View file

@ -40,6 +40,7 @@
Bug #6282: Laura craft doesn't follow the player character
Bug #6283: Avis Dorsey follows you after her death
Bug #6289: Keyword search in dialogues expected the text to be all ASCII characters
Bug #6302: Teleporting disabled actor breaks its disabled state
Feature #890: OpenMW-CS: Column filtering
Feature #2554: Modifying an object triggers the instances table to scroll to the corresponding record
Feature #2780: A way to see current OpenMW version in the console

View file

@ -1159,7 +1159,8 @@ namespace MWWorld
if (!currCellActive && newCellActive)
{
newPtr = currCell->moveTo(ptr, newCell);
mWorldScene->addObjectToScene(newPtr);
if(newPtr.getRefData().isEnabled())
mWorldScene->addObjectToScene(newPtr);
std::string script = newPtr.getClass().getScript(newPtr);
if (!script.empty())