mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-22 19:39:32 -04:00
Merge branch 'clean_despawn' into 'master'
Remove effects added by unloading cells Closes #6914 See merge request OpenMW/openmw!2208
This commit is contained in:
commit
79cdc08253
@ -366,6 +366,9 @@ namespace MWWorld
|
|||||||
|
|
||||||
MWBase::Environment::get().getSoundManager()->stopSound (cell);
|
MWBase::Environment::get().getSoundManager()->stopSound (cell);
|
||||||
mActiveCells.erase(cell);
|
mActiveCells.erase(cell);
|
||||||
|
// Clean up any effects that may have been spawned while unloading all cells
|
||||||
|
if(mActiveCells.empty())
|
||||||
|
mRendering.notifyWorldSpaceChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Scene::loadCell(CellStore *cell, Loading::Listener* loadingListener, bool respawn, const osg::Vec3f& position)
|
void Scene::loadCell(CellStore *cell, Loading::Listener* loadingListener, bool respawn, const osg::Vec3f& position)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user