mirror of
https://github.com/lubosz/overte.git
synced 2025-04-26 20:55:52 +02:00
Cleanup dead code and unused var in BakerCLI
This commit is contained in:
parent
94a58a2471
commit
4dd08d93f4
2 changed files with 3 additions and 2 deletions
tools/oven/src
|
@ -42,7 +42,7 @@ void BakerCLI::bakeFile(QUrl inputUrl, const QString& outputPath, const QString&
|
|||
}
|
||||
|
||||
// check what kind of baker we should be creating
|
||||
bool isFBX = extension == MODEL_EXTENSION;//inputUrl.toDisplayString().endsWith(MODEL_EXTENSION, Qt::CaseInsensitive);
|
||||
bool isFBX = extension == MODEL_EXTENSION;
|
||||
|
||||
bool isSupportedImage = QImageReader::supportedImageFormats().contains(extension.toLatin1());
|
||||
|
||||
|
@ -75,7 +75,7 @@ void BakerCLI::handleFinishedBaker() {
|
|||
exitCode = OVEN_STATUS_CODE_ABORT;
|
||||
} else if (_baker->hasErrors()) {
|
||||
exitCode = OVEN_STATUS_CODE_FAIL;
|
||||
QFile errorFile { _outputPath.absoluteFilePath("errors.txt") };
|
||||
QFile errorFile { _outputPath.absoluteFilePath(OVEN_ERROR_FILENAME) };
|
||||
if (errorFile.open(QFile::WriteOnly)) {
|
||||
errorFile.write(_baker->getErrors().join('\n').toUtf8());
|
||||
errorFile.close();
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#define hifi_BakeWidget_h
|
||||
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <Baker.h>
|
||||
|
|
Loading…
Reference in a new issue