This commit is contained in:
Clement 2019-04-17 12:57:15 -07:00
parent 86b6341098
commit 2c3dd153dd

View file

@ -55,8 +55,8 @@ void BakeAssetTask::run() {
// Copy file to bake the temporary dir and give a name the oven can work with
auto assetName = _assetPath.split("/").last();
auto tempAssetPath = tempOutputDir + "/" + assetName;
auto sucess = QFile::copy(_filePath, tempAssetPath);
if (!sucess) {
auto success = QFile::copy(_filePath, tempAssetPath);
if (!success) {
QString errors = "Couldn't copy file to bake to temporary directory";
emit bakeFailed(_assetHash, _assetPath, errors);
PathUtils::deleteMyTemporaryDir(tempOutputDirName);