Skip to content

Commit d8d87a3

Browse files
committed
Fix missing header
1 parent e57c974 commit d8d87a3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

meshers/blocky/blocky_baked_library.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "../../constants/cube_tables.h"
55
#include "../../util/containers/dynamic_bitset.h"
66
#include "../../util/containers/fixed_array.h"
7+
#include "../../util/containers/std_unordered_map.h"
78
#include "../../util/containers/std_vector.h"
89
#include "../../util/godot/core/aabb.h"
910
#include "../../util/math/color.h"
@@ -98,7 +99,7 @@ struct BakedModel {
9899
// [side][neighbor_shape_id] => pre-cut SideSurfaces
99100
// Surface to attempt using when a side passes the visibility test and cutout is enabled.
100101
// If the SideSurface from this container is empty or not found, fallback on full surface
101-
FixedArray<std::unordered_map<uint32_t, FixedArray<SideSurface, MAX_SURFACES>>, Cube::SIDE_COUNT>
102+
FixedArray<StdUnorderedMap<uint32_t, FixedArray<SideSurface, MAX_SURFACES>>, Cube::SIDE_COUNT>
102103
cutout_side_surfaces;
103104
// TODO ^ Make it UniquePtr? That array takes space for what is essentially a niche feature
104105

meshers/blocky/voxel_mesher_blocky.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ void generate_mesh(
215215
if (neighbor_voxel_id < library.models.size()) {
216216
const BakedModel &other_vt = library.models[neighbor_voxel_id];
217217

218-
const std::unordered_map<uint32_t, FixedArray<BakedModel::SideSurface, MAX_SURFACES>>
218+
const StdUnorderedMap<uint32_t, FixedArray<BakedModel::SideSurface, MAX_SURFACES>>
219219
&cutout_side_surfaces_by_neighbor_shape = model.cutout_side_surfaces[side];
220220

221221
const unsigned int neighbor_shape_id =

0 commit comments

Comments
 (0)