mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +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;
|
||||
}
|
||||
mapping = result.toString();
|
||||
if (mapping[0] != '/') {
|
||||
mapping = "/" + mapping;
|
||||
}
|
||||
|
||||
// Check for override
|
||||
if (isKnownMapping(mapping)) {
|
||||
|
|
Loading…
Reference in a new issue