History

Add / to beginning of mapping on upload if missing

Ryan Huffman committed 10 years ago

Commit ad0fb181 parent 2d4864e1 file · +3 −0Browse files

Showing the changes to interface/src/scripting/AssetMappingsScriptingInterface.cpp (1 of 1 file). Show all

Unified · Split

interface/src/scripting/AssetMappingsScriptingInterface.cpp+3−0
@@ -88,6 +88,9 @@ void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping, · 87 unmodified lines
88 return;88 return;
89 }89 }
90 mapping = result.toString();90 mapping = result.toString();
91 if (mapping[0] != '/') {
92 mapping = "/" + mapping;
93 }
91 94
92 // Check for override95 // Check for override
93 if (isKnownMapping(mapping)) {96 if (isKnownMapping(mapping)) {