mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
Clara download working again, still can drag in Blocks zip
This commit is contained in:
parent
9d2be28a8a
commit
692aa4c4b9
1 changed files with 2 additions and 4 deletions
|
@ -6267,14 +6267,12 @@ void Application::addAssetToWorld(QString filePath, QString zipFile, bool isBloc
|
|||
// Automatically upload and add asset to world as an alternative manual process initiated by showAssetServerWidget().
|
||||
QString mapping;
|
||||
QString path = filePath;
|
||||
QString filename = filenameFromPath(filePath);
|
||||
QString filename = filenameFromPath(path);
|
||||
if (isBlocks) {
|
||||
QString assetFolder = zipFile.section("/", -1);
|
||||
assetFolder.remove(".zip");
|
||||
mapping = "/" + assetFolder + "/" + filenameFromPath(filename);
|
||||
mapping = "/" + assetFolder + "/" + filename;
|
||||
} else {
|
||||
path = QUrl(filePath).toLocalFile();
|
||||
filename = filenameFromPath(path);
|
||||
mapping = "/" + filename;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue