mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:28:37 +02:00
truncate filename for relative path URL in RR
This commit is contained in:
parent
100ac65975
commit
a59103aad5
1 changed files with 3 additions and 0 deletions
|
@ -94,6 +94,9 @@ void AssetResourceRequest::requestMappingForPath(const AssetPath& path) {
|
||||||
// if we got a redirected path we need to store that with the resource request as relative path URL
|
// if we got a redirected path we need to store that with the resource request as relative path URL
|
||||||
if (request->wasRedirected()) {
|
if (request->wasRedirected()) {
|
||||||
_relativePathURL = ATP_SCHEME + request->getRedirectedPath();
|
_relativePathURL = ATP_SCHEME + request->getRedirectedPath();
|
||||||
|
|
||||||
|
// truncate the filename for the re-directed asset so we actually have a path
|
||||||
|
_relativePathURL = _relativePathURL.adjusted(QUrl::RemoveFilename);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue