mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-15 01:48:07 +02:00
Merge pull request #15286 from huffman/fix/oven-query-param-in-model-url
Case 20928: Fix some URLs with query params not working with model baker
This commit is contained in:
commit
6a16a37339
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