THUMBNAILER: missing nippon palette is no longer a hard error

master
Martin Gerhardy 2022-01-16 22:37:11 +01:00
parent 67e0fa24a5
commit 52e364fa59
2 changed files with 5 additions and 2 deletions

View File

@ -24,8 +24,7 @@ image::ImagePtr volumeThumbnail(const core::String &fileName, io::SeekableReadSt
return image;
}
if (!voxel::initDefaultMaterialColors()) {
Log::error("Failed to initialize the default materials");
return image::ImagePtr();
Log::warn("Failed to initialize the default materials");
}
stream.seek(0);

View File

@ -74,7 +74,11 @@ app::AppState Thumbnailer::onRunning() {
if (image) {
if (!image::Image::writePng(outStream, image->data(), image->width(), image->height(), image->depth())) {
Log::error("Failed to write image");
} else {
Log::info("Write image %s", _outfile.c_str());
}
} else {
Log::error("Failed to create thumbnail for %s", _infile->name().c_str());
}
requestQuit();