From 9fc5ced9c9b531688f1f687850c1ac6ea35bc6d5 Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Sat, 30 Jul 2022 10:59:27 +0200 Subject: [PATCH] Remove effects added by unloading cells --- apps/openmw/mwworld/scene.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwworld/scene.cpp b/apps/openmw/mwworld/scene.cpp index 01ac40223f..035368d9de 100644 --- a/apps/openmw/mwworld/scene.cpp +++ b/apps/openmw/mwworld/scene.cpp @@ -366,6 +366,9 @@ namespace MWWorld MWBase::Environment::get().getSoundManager()->stopSound (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)