mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:23:36 +02:00
Fix BakeAssetTask not handling case where oven process is not found
This commit is contained in:
parent
982607eedf
commit
50c47c785d
1 changed files with 6 additions and 1 deletions
|
@ -115,7 +115,12 @@ void BakeAssetTask::run() {
|
|||
|
||||
qDebug() << "Starting oven for " << _assetPath;
|
||||
_ovenProcess->start(path, args, QIODevice::ReadOnly);
|
||||
_ovenProcess->waitForStarted();
|
||||
if (!_ovenProcess->waitForStarted(-1)) {
|
||||
_didFinish.store(true);
|
||||
QString errors = "Oven process failed to start";
|
||||
emit bakeFailed(_assetHash, _assetPath, errors);
|
||||
return;
|
||||
}
|
||||
_ovenProcess->waitForFinished();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue