enabling / disabling should not affect scripts

actorid
Tom Mason 12 years ago
parent 31c71c029d
commit f5f3c2e62d

@ -427,8 +427,6 @@ namespace MWWorld
{
reference.getRefData().enable();
addContainerScripts(reference, reference.getCell());
if(mWorldScene->getActiveCells().find (reference.getCell()) != mWorldScene->getActiveCells().end() && reference.getRefData().getCount())
mWorldScene->addObjectToScene (reference);
}
@ -459,10 +457,6 @@ namespace MWWorld
{
reference.getRefData().disable();
removeContainerScripts(reference);
if(MWWorld::Class::get(reference).getScript(reference) != "")
mLocalScripts.remove(reference);
if(mWorldScene->getActiveCells().find (reference.getCell())!=mWorldScene->getActiveCells().end() && reference.getRefData().getCount())
mWorldScene->removeObjectFromScene (reference);
}

Loading…
Cancel
Save