mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 18:38:24 +02:00
Merge branch 'master' of https://github.com/highfidelity/hifi into xboxLasers
This commit is contained in:
commit
0b6e041d45
2 changed files with 11 additions and 0 deletions
|
@ -38,6 +38,12 @@ void BatchLoader::start() {
|
||||||
|
|
||||||
_started = true;
|
_started = true;
|
||||||
|
|
||||||
|
if (_urls.size() == 0) {
|
||||||
|
_finished = true;
|
||||||
|
emit finished(_data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (const auto& rawURL : _urls) {
|
for (const auto& rawURL : _urls) {
|
||||||
QUrl url = expandScriptUrl(normalizeScriptURL(rawURL));
|
QUrl url = expandScriptUrl(normalizeScriptURL(rawURL));
|
||||||
|
|
||||||
|
|
|
@ -1199,6 +1199,11 @@ void ScriptEngine::include(const QStringList& includeFiles, QScriptValue callbac
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If there are no URLs left to download, don't bother attempting to download anything and return early
|
||||||
|
if (urls.size() == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
BatchLoader* loader = new BatchLoader(urls);
|
BatchLoader* loader = new BatchLoader(urls);
|
||||||
EntityItemID capturedEntityIdentifier = currentEntityIdentifier;
|
EntityItemID capturedEntityIdentifier = currentEntityIdentifier;
|
||||||
QUrl capturedSandboxURL = currentSandboxURL;
|
QUrl capturedSandboxURL = currentSandboxURL;
|
||||||
|
|
Loading…
Reference in a new issue