mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:41:20 +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
|
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