mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 19:10:38 +02:00
Keep return script value
This commit is contained in:
parent
34ab0f10e0
commit
e2b140848f
2 changed files with 30 additions and 29 deletions
|
@ -848,7 +848,7 @@ void ScriptManager::run() {
|
|||
|
||||
{
|
||||
PROFILE_RANGE(script, _fileNameString);
|
||||
_engine->evaluate(_scriptContents, _fileNameString);
|
||||
_returnValue = _engine->evaluate(_scriptContents, _fileNameString);
|
||||
_engine->maybeEmitUncaughtException(__FUNCTION__);
|
||||
}
|
||||
#ifdef _WIN32
|
||||
|
|
|
@ -968,6 +968,7 @@ protected:
|
|||
mutable QReadWriteLock _entityScriptsLock { QReadWriteLock::Recursive };
|
||||
QHash<EntityItemID, EntityScriptDetails> _entityScripts;
|
||||
EntityScriptContentAvailableMap _contentAvailableQueue;
|
||||
ScriptValue _returnValue;
|
||||
|
||||
bool _isThreaded { false };
|
||||
qint64 _lastUpdate;
|
||||
|
|
Loading…
Reference in a new issue