VOXELFORMAT: use the palette of the merge for qef saving
parent
190c9fdf41
commit
e38e40f3e8
|
@ -136,7 +136,7 @@ bool QEFFormat::saveGroups(const SceneGraph &sceneGraph, const core::String &fil
|
||||||
const uint32_t height = region.getHeightInVoxels();
|
const uint32_t height = region.getHeightInVoxels();
|
||||||
const uint32_t depth = region.getDepthInVoxels();
|
const uint32_t depth = region.getDepthInVoxels();
|
||||||
stream.writeStringFormat(false, "%i %i %i\n", width, depth, height);
|
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);
|
stream.writeStringFormat(false, "%i\n", palette.colorCount);
|
||||||
for (int i = 0; i < palette.colorCount; ++i) {
|
for (int i = 0; i < palette.colorCount; ++i) {
|
||||||
const uint32_t c = palette.colors[i];
|
const uint32_t c = palette.colors[i];
|
||||||
|
|
Loading…
Reference in New Issue