mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
Clear queued processing on quit
This commit is contained in:
parent
694dc1bbf6
commit
2d820221dc
1 changed files with 3 additions and 0 deletions
|
@ -1185,6 +1185,9 @@ void Application::cleanupBeforeQuit() {
|
|||
|
||||
getEntities()->shutdown(); // tell the entities system we're shutting down, so it will stop running scripts
|
||||
|
||||
// Clear any queued processing (I/O, FBX/OBJ/Texture parsing)
|
||||
QThreadPool::globalInstance()->clear();
|
||||
|
||||
DependencyManager::get<ScriptEngines>()->saveScripts();
|
||||
DependencyManager::get<ScriptEngines>()->shutdownScripting(); // stop all currently running global scripts
|
||||
DependencyManager::destroy<ScriptEngines>();
|
||||
|
|
Loading…
Reference in a new issue