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:
parent
e760a6c7e6
commit
77a23dab09
2 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue