瀏覽代碼

Update stb_voxel_render.h

guitarfreak 9 年之前
父節點
當前提交
6a29bcf2a1
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      stb_voxel_render.h

+ 2 - 3
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