mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 03:37:17 +02:00
Add / to beginning of mapping on upload if missing
This commit is contained in:
parent
2d4864ed33
commit
ad0fb18d81
1 changed files with 3 additions and 0 deletions
|
@ -88,6 +88,9 @@ void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mapping = result.toString();
|
mapping = result.toString();
|
||||||
|
if (mapping[0] != '/') {
|
||||||
|
mapping = "/" + mapping;
|
||||||
|
}
|
||||||
|
|
||||||
// Check for override
|
// Check for override
|
||||||
if (isKnownMapping(mapping)) {
|
if (isKnownMapping(mapping)) {
|
||||||
|
|
Loading…
Reference in a new issue