From 3a100a8afb3480c48efd0b2620900e9beb39d6dc Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Sat, 21 May 2022 17:56:15 +0200 Subject: [PATCH] VOXELFORMAT: allow non-const access to the palette --- src/modules/voxelformat/private/PaletteLookup.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/voxelformat/private/PaletteLookup.h b/src/modules/voxelformat/private/PaletteLookup.h index a1a4eaab7..ca0764094 100644 --- a/src/modules/voxelformat/private/PaletteLookup.h +++ b/src/modules/voxelformat/private/PaletteLookup.h @@ -29,6 +29,10 @@ public: return _palette; } + inline voxel::Palette &palette() { + return _palette; + } + /** * @brief Find the closed index in the currently in-use palette for the given color * @param color Normalized color value [0.0-1.0]