Only add enabled objects to the scene

pull/3130/head
Evil Eye 3 years ago
parent e760a6c7e6
commit 77a23dab09

@ -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

@ -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())

Loading…
Cancel
Save