mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 16:55:06 +02:00
add ability to include scripts from a relative path in assignment-client (for persistent scripts only)
This commit is contained in:
parent
176d7372ad
commit
f512205f6f
1 changed files with 4 additions and 0 deletions
|
@ -181,6 +181,10 @@ void Agent::run() {
|
|||
// register ourselves to the script engine
|
||||
_scriptEngine.registerGlobalObject("Agent", this);
|
||||
|
||||
if (!_payload.isEmpty()) {
|
||||
_scriptEngine.setParentURL(_payload);
|
||||
}
|
||||
|
||||
_scriptEngine.init(); // must be done before we set up the viewers
|
||||
|
||||
_scriptEngine.registerGlobalObject("SoundCache", DependencyManager::get<SoundCache>().data());
|
||||
|
|
Loading…
Reference in a new issue