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);