mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-08 04:27:37 +02:00
Fix some URLs with query params not working with model baker
After talking with Sabrina, we decided that we could safely leave the query param and fragment intact for a URL in the model baker.
This commit is contained in:
parent
8ff47659d3
commit
7e805562ef
1 changed files with 3 additions and 4 deletions
|
@ -26,11 +26,10 @@ QUrl getBakeableModelURL(const QUrl& url) {
|
||||||
GLTF_EXTENSION
|
GLTF_EXTENSION
|
||||||
};
|
};
|
||||||
|
|
||||||
QUrl cleanURL = url.adjusted(QUrl::RemoveQuery | QUrl::RemoveFragment);
|
QString filename = url.fileName();
|
||||||
QString cleanURLString = cleanURL.fileName();
|
|
||||||
for (auto& extension : extensionsToBake) {
|
for (auto& extension : extensionsToBake) {
|
||||||
if (cleanURLString.endsWith(extension, Qt::CaseInsensitive)) {
|
if (filename.endsWith(extension, Qt::CaseInsensitive)) {
|
||||||
return cleanURL;
|
return url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue