simplified naming of zip folders

This commit is contained in:
Elisa Lupin-Jimenez 2017-11-20 14:02:46 -08:00
parent b6e75d1222
commit a54f4eca93

View file

@ -6336,12 +6336,7 @@ void Application::addAssetToWorld(QString path, QString zipFile, bool isZip, boo
QString mapping;
QString filename = filenameFromPath(path);
if (isZip || isBlocks) {
QString assetName;
if (isZip) {
assetName = zipFile.section("/", -1).remove(".zip");
} else if (isBlocks) {
assetName = zipFile.section("/", -1).remove(".zip?noDownload=false");
}
QString assetName = zipFile.section("/", -1).remove(QRegExp("\.zip(.*)$"));
QString assetFolder = path.section("model_repo/", -1);
mapping = "/" + assetName + "/" + assetFolder;
} else {