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:
Ryan Huffman 2019-03-28 11:59:27 -07:00
parent 8ff47659d3
commit 7e805562ef

View file

@ -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;
}
}