mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 05:22:11 +02:00
make any asset path relative to assets dir
This commit is contained in:
parent
8c2d69f865
commit
27d338e81c
2 changed files with 2 additions and 3 deletions
|
@ -89,7 +89,7 @@ void AssetServer::completeSetup() {
|
|||
if (assetsPath.isRelative()) {
|
||||
// if the domain settings passed us a relative path, make an absolute path that is relative to the
|
||||
// default data directory
|
||||
absoluteFilePath = ServerPathUtils::getDataFilePath(assetsPathString);
|
||||
absoluteFilePath = ServerPathUtils::getDataFilePath("assets/" + assetsPathString);
|
||||
}
|
||||
|
||||
_resourcesDirectory = QDir(absoluteFilePath);
|
||||
|
|
|
@ -184,8 +184,7 @@
|
|||
"type": "string",
|
||||
"label": "Assets Path",
|
||||
"help": "The path to the directory assets are stored in.<br/>If this path is relative, it will be relative to the application data directory.<br/>If you change this path you will need to manually copy any existing assets from the previous directory.",
|
||||
"placeholder": "assets",
|
||||
"default": "assets",
|
||||
"default": "",
|
||||
"advanced": true
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue