mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 01:23:38 +02:00
Merge branch 'serverless-domains' of github.com:sethalves/hifi into serverless-domains
This commit is contained in:
commit
15a3babda9
3 changed files with 9 additions and 1 deletions
|
@ -893,6 +893,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
|||
setProperty(hifi::properties::STEAM, (steamClient && steamClient->isRunning()));
|
||||
setProperty(hifi::properties::CRASHED, _previousSessionCrashed);
|
||||
|
||||
_entityClipboard->setIsServerlessMode(true);
|
||||
|
||||
{
|
||||
const QString TEST_SCRIPT = "--testScript";
|
||||
const QString TRACE_FILE = "--traceFile";
|
||||
|
@ -3057,6 +3059,9 @@ void Application::loadServerlessDomain(QUrl domainURL) {
|
|||
addressManager->handleLookupString(DOMAIN_SPAWNING_POINT);
|
||||
|
||||
clearDomainOctreeDetails();
|
||||
_entityClipboard->eraseAllOctreeElements();
|
||||
getEntities()->getTree()->setIsServerlessMode(true);
|
||||
getEntities()->getTree()->eraseAllOctreeElements();
|
||||
if (importEntities(domainURL.toString())) {
|
||||
pasteEntities(0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
|
|
@ -303,7 +303,7 @@ bool AddressManager::handleUrl(const QUrl& lookupUrl, LookupTrigger trigger) {
|
|||
// a path lookup clears the previous lookup since we don't expect to re-attempt it
|
||||
_previousLookup.clear();
|
||||
// if this is a relative path then handle it as a relative viewpoint
|
||||
handlePath(lookupUrl.path(), trigger, true);
|
||||
handlePath(lookupUrl.path(), trigger, false);
|
||||
emit lookupResultsFinished();
|
||||
return true;
|
||||
|
||||
|
|
|
@ -162,6 +162,9 @@ void DomainHandler::setSocketAndID(const QUrl& serverlessDomainURL,
|
|||
|
||||
if (serverlessDomainURL != _serverlessDomainURL) {
|
||||
_serverlessDomainURL = serverlessDomainURL;
|
||||
if (_serverlessDomainURL != QUrl()) {
|
||||
setIsConnected(true);
|
||||
}
|
||||
emit serverlessDomainChanged("");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue