mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Update AssetMappingsScriptingInterface to not open file for activity event
This commit is contained in:
parent
ff019d6195
commit
9c120f1194
1 changed files with 2 additions and 6 deletions
|
@ -105,12 +105,8 @@ void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping,
|
|||
|
||||
startedCallback.call();
|
||||
|
||||
QFile file { path };
|
||||
int64_t size { 0 };
|
||||
if (file.open(QIODevice::ReadOnly)) {
|
||||
size = file.size();
|
||||
file.close();
|
||||
}
|
||||
QFileInfo fileInfo { path };
|
||||
int64_t size { fileInfo.size() };
|
||||
|
||||
QString extension = "";
|
||||
auto idx = path.lastIndexOf(".");
|
||||
|
|
Loading…
Reference in a new issue