mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 11:52:04 +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
|
||||
};
|
||||
|
||||
QUrl cleanURL = url.adjusted(QUrl::RemoveQuery | QUrl::RemoveFragment);
|
||||
QString cleanURLString = cleanURL.fileName();
|
||||
QString filename = url.fileName();
|
||||
for (auto& extension : extensionsToBake) {
|
||||
if (cleanURLString.endsWith(extension, Qt::CaseInsensitive)) {
|
||||
return cleanURL;
|
||||
if (filename.endsWith(extension, Qt::CaseInsensitive)) {
|
||||
return url;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue