From 6a29bcf2a1c00b100558d6b0366fa64f4c0929c7 Mon Sep 17 00:00:00 2001 From: guitarfreak Date: Sat, 8 Oct 2016 04:23:52 +0200 Subject: [PATCH] Update stb_voxel_render.h --- stb_voxel_render.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stb_voxel_render.h b/stb_voxel_render.h index 46a4726..32d581c 100644 --- a/stb_voxel_render.h +++ b/stb_voxel_render.h @@ -3358,10 +3358,9 @@ static void stbvox_make_mesh_for_block_with_geo(stbvox_mesh_maker *mm, stbvox_po mesh = mm->input.selector[v_off]; simple_rot = mesh >> 4; mesh &= 15; - } else if (mm->input.block_selector) { + } + if (mm->input.block_selector) { mesh = mm->input.block_selector[bt]; - simple_rot = mesh >> 4; - mesh &= 15; } // check if we're going off the end