VOXEL: leave a comment about writing the full buffer

master
Martin Gerhardy 2022-05-22 19:00:24 +02:00
parent ad0e30841a
commit a8d842715f
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ bool Palette::save(const char *name) const {
}
image::Image img(name);
Log::info("Save palette to %s", name);
// must be voxel::PaletteMaxColors - otherwise the exporter uv coordinates must get adopted
img.loadRGBA((const uint8_t *)colors, sizeof(colors), lengthof(colors), 1);
if (!img.writePng()) {
Log::warn("Failed to write the palette file '%s'", name);