Fix extension detection when tracking asset uploads

This commit is contained in:
Ryan Huffman 2017-09-28 13:56:49 -07:00
parent 97bf093cab
commit ff019d6195

View file

@ -114,7 +114,7 @@ void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping,
QString extension = "";
auto idx = path.lastIndexOf(".");
if (idx) {
if (idx >= 0) {
extension = path.mid(idx + 1);
}