mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
Fix extension detection when tracking asset uploads
This commit is contained in:
parent
97bf093cab
commit
ff019d6195
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -384,4 +384,4 @@ void AssetMappingModel::setupRoles() {
|
|||
roleNames[Qt::DisplayRole] = "name";
|
||||
roleNames[Qt::UserRole + 5] = "baked";
|
||||
setItemRoleNames(roleNames);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue