mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 11:17:34 +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 << entityID.toScriptValue(this);
|
||||||
args << qScriptValueFromSequence(this, params);
|
args << qScriptValueFromSequence(this, params);
|
||||||
|
|
||||||
QScriptValue oldData = this->globalObject().property("remoteCallerID");
|
QScriptValue oldData = this->globalObject().property("Script").property("remoteCallerID");
|
||||||
this->globalObject().setProperty("remoteCallerID", remoteCallerID.toString()); // Make the remoteCallerID available to javascript as a global.
|
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);
|
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