mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 01:56:39 +02:00
move remoteCallerID to Script.remoteCallerID
This commit is contained in:
parent
a7e21d7e76
commit
44f8bf00bc
1 changed files with 3 additions and 3 deletions
|
@ -2531,10 +2531,10 @@ void ScriptEngine::callEntityScriptMethod(const EntityItemID& entityID, const QS
|
|||
args << entityID.toScriptValue(this);
|
||||
args << qScriptValueFromSequence(this, params);
|
||||
|
||||
QScriptValue oldData = this->globalObject().property("remoteCallerID");
|
||||
this->globalObject().setProperty("remoteCallerID", remoteCallerID.toString()); // Make the remoteCallerID available to javascript as a global.
|
||||
QScriptValue oldData = this->globalObject().property("Script").property("remoteCallerID");
|
||||
this->globalObject().property("Script").setProperty("remoteCallerID", remoteCallerID.toString()); // Make the remoteCallerID available to javascript as a global.
|
||||
callWithEnvironment(entityID, details.definingSandboxURL, entityScript.property(methodName), entityScript, args);
|
||||
this->globalObject().setProperty("remoteCallerID", oldData);
|
||||
this->globalObject().property("Script").setProperty("remoteCallerID", oldData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue