From 6ed39e0e54b07227aa37d55dd99af7e70b0598bf Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Sat, 21 May 2022 18:43:13 +0200 Subject: [PATCH] VOXELFORMAT: fixed loading vxm palette --- src/modules/voxelformat/VXMFormat.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/voxelformat/VXMFormat.cpp b/src/modules/voxelformat/VXMFormat.cpp index 74f0ea864..1eda773f1 100644 --- a/src/modules/voxelformat/VXMFormat.cpp +++ b/src/modules/voxelformat/VXMFormat.cpp @@ -453,12 +453,12 @@ bool VXMFormat::loadGroupsPalette(const core::String &filename, io::SeekableRead } for (int i = 0; i < (int) materialAmount; ++i) { - uint8_t red; - wrap(stream.readUInt8(red)); - uint8_t green; - wrap(stream.readUInt8(green)); uint8_t blue; wrap(stream.readUInt8(blue)); + uint8_t green; + wrap(stream.readUInt8(green)); + uint8_t red; + wrap(stream.readUInt8(red)); uint8_t alpha; wrap(stream.readUInt8(alpha)); uint8_t emissive;