VOXELFORMAT: use the palette of the merge for qef saving

master
Martin Gerhardy 2022-05-09 20:27:44 +02:00
parent 190c9fdf41
commit e38e40f3e8
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ bool QEFFormat::saveGroups(const SceneGraph &sceneGraph, const core::String &fil
const uint32_t height = region.getHeightInVoxels();
const uint32_t depth = region.getDepthInVoxels();
stream.writeStringFormat(false, "%i %i %i\n", width, depth, height);
const voxel::Palette& palette = voxel::getPalette();
const voxel::Palette& palette = merged.second;
stream.writeStringFormat(false, "%i\n", palette.colorCount);
for (int i = 0; i < palette.colorCount; ++i) {
const uint32_t c = palette.colors[i];