From a8d842715f5c9bc6a28b3cb42393bd33d185df16 Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Sun, 22 May 2022 19:00:24 +0200 Subject: [PATCH] VOXEL: leave a comment about writing the full buffer --- src/modules/voxel/Palette.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/voxel/Palette.cpp b/src/modules/voxel/Palette.cpp index 248d6e062..090078611 100644 --- a/src/modules/voxel/Palette.cpp +++ b/src/modules/voxel/Palette.cpp @@ -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);