mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-24 10:45:27 +02:00
Merge pull request #26 from druiz17/serverless-domains
Serverless domains
This commit is contained in:
commit
e583d3d104
4 changed files with 21 additions and 3 deletions
18
interface/resources/start.json
Normal file
18
interface/resources/start.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"Entities": [
|
||||
{
|
||||
"type": "Box",
|
||||
"dimensions": {
|
||||
"x": 99.99999,
|
||||
"y": 6.993421,
|
||||
"z": 99.99999
|
||||
},
|
||||
"position" : {
|
||||
"x": 0,
|
||||
"y": -10,
|
||||
"z": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"Version": 84
|
||||
}
|
|
@ -58,7 +58,7 @@ void AddressBarDialog::loadHome() {
|
|||
qDebug() << "Called LoadHome";
|
||||
auto locationBookmarks = DependencyManager::get<LocationBookmarks>();
|
||||
QString homeLocation = locationBookmarks->addressForBookmark(LocationBookmarks::HOME_BOOKMARK);
|
||||
const QString DEFAULT_HOME_LOCATION = "localhost";
|
||||
const QString DEFAULT_HOME_LOCATION = "file:///~/start/start.json";
|
||||
if (homeLocation == "") {
|
||||
homeLocation = DEFAULT_HOME_LOCATION;
|
||||
}
|
||||
|
|
|
@ -493,7 +493,7 @@ EntityItemPointer EntityTree::addEntity(const EntityItemID& entityID, const Enti
|
|||
|
||||
if (!properties.getClientOnly() && getIsClient() &&
|
||||
!nodeList->getThisNodeCanRez() && !nodeList->getThisNodeCanRezTmp() &&
|
||||
!nodeList->getThisNodeCanRezCertified() && !nodeList->getThisNodeCanRezTmpCertified()) {
|
||||
!nodeList->getThisNodeCanRezCertified() && !nodeList->getThisNodeCanRezTmpCertified() && !_serverlessDomain) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ QUrl PathUtils::expandToLocalDataAbsolutePath(const QUrl& fileUrl) {
|
|||
QUrl url = fileUrl;
|
||||
QString path = fileUrl.path();
|
||||
if (path.startsWith("/~/")) {
|
||||
path.replace(0, 3, getAppLocalDataPath());
|
||||
path.replace(0, 3, resourcesPath());
|
||||
url = QUrl::fromLocalFile(path);
|
||||
}
|
||||
return url;
|
||||
|
|
Loading…
Reference in a new issue