Skip to content

Commit

Permalink
Wrap function used only when debug checks are on
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Feb 7, 2024
1 parent 64c8a71 commit 4b4c51e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,12 @@ void process_octrees_sliding_box(VoxelLodTerrainUpdateData::State &state, Vector
state.octree_streaming.last_octree_region_box = new_box;
}

#ifdef DEBUG_ENABLED
inline bool check_block_sizes(int data_block_size, int mesh_block_size) {
return (data_block_size == 16 || data_block_size == 32) && (mesh_block_size == 16 || mesh_block_size == 32) &&
mesh_block_size >= data_block_size;
}
#endif

bool add_loading_block(VoxelLodTerrainUpdateData::Lod &lod, Vector3i position) {
auto it = lod.loading_blocks.find(position);
Expand Down

0 comments on commit 4b4c51e

Please sign in to comment.