case 20595: case 20563: Do not delete local entities when switching domains.
Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 14 files). Show all
Unified · Split
| @@ -2407,6 +2407,11 @@ void ScriptEngine::unloadEntityScript(const EntityItemID& entityID, bool shouldR · 2406 unmodified lines | ||
| 2407 | 2407 | } |
| 2408 | 2408 | } |
| 2409 | 2409 | |
| 2410 | +QList<EntityItemID> ScriptEngine::getListOfEntityScriptIDs() { | |
| 2411 | + QReadLocker locker{ &_entityScriptsLock }; | |
| 2412 | + return _entityScripts.keys(); | |
| 2413 | +} | |
| 2414 | + | |
| 2410 | 2415 | void ScriptEngine::unloadAllEntityScripts() { |
| 2411 | 2416 | if (QThread::currentThread() != thread()) { |
| 2412 | 2417 | #ifdef THREAD_DEBUGGING |