Fix crash when unloading scene during tick of that scene

This commit is contained in:
Wojtek Figat
2026-03-12 13:39:01 +01:00
parent 5c51652e16
commit 8318a9c1d0
4 changed files with 31 additions and 23 deletions

View File

@@ -958,9 +958,6 @@ bool LevelImpl::unloadScene(Scene* scene)
// Simple enqueue scene root object to be deleted
scene->DeleteObject();
// Force flush deleted objects so we actually delete unloaded scene objects (prevent from reloading their managed objects, etc.)
ObjectsRemovalService::Flush();
return false;
}