mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 00:17:25 +02:00
simplified naming of zip folders
This commit is contained in:
parent
b6e75d1222
commit
a54f4eca93
1 changed files with 1 additions and 6 deletions
|
@ -6336,12 +6336,7 @@ void Application::addAssetToWorld(QString path, QString zipFile, bool isZip, boo
|
||||||
QString mapping;
|
QString mapping;
|
||||||
QString filename = filenameFromPath(path);
|
QString filename = filenameFromPath(path);
|
||||||
if (isZip || isBlocks) {
|
if (isZip || isBlocks) {
|
||||||
QString assetName;
|
QString assetName = zipFile.section("/", -1).remove(QRegExp("\.zip(.*)$"));
|
||||||
if (isZip) {
|
|
||||||
assetName = zipFile.section("/", -1).remove(".zip");
|
|
||||||
} else if (isBlocks) {
|
|
||||||
assetName = zipFile.section("/", -1).remove(".zip?noDownload=false");
|
|
||||||
}
|
|
||||||
QString assetFolder = path.section("model_repo/", -1);
|
QString assetFolder = path.section("model_repo/", -1);
|
||||||
mapping = "/" + assetName + "/" + assetFolder;
|
mapping = "/" + assetName + "/" + assetFolder;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue