mirror of
https://github.com/Relintai/godot_voxel.git
synced 2025-03-11 21:53:24 +01:00
Remove function from class declaration, doesn't need to be in here
This commit is contained in:
parent
7c6d4f3242
commit
d1c21bdf5d
@ -508,7 +508,11 @@ void VoxelTerrain::_notification(int p_what) {
|
||||
}
|
||||
}
|
||||
|
||||
void VoxelTerrain::remove_positions_outside_box(Vector<Vector3i> &positions, Rect3i box, HashMap<Vector3i, VoxelTerrain::BlockDirtyState, Vector3iHasher> &state_map) {
|
||||
static void remove_positions_outside_box(
|
||||
Vector<Vector3i> &positions,
|
||||
Rect3i box,
|
||||
HashMap<Vector3i, VoxelTerrain::BlockDirtyState, Vector3iHasher> &state_map) {
|
||||
|
||||
for (int i = 0; i < positions.size(); ++i) {
|
||||
const Vector3i bpos = positions[i];
|
||||
if (!box.contains(bpos)) {
|
||||
|
@ -118,8 +118,6 @@ private:
|
||||
int get_voxel(Vector3 pos, int c);
|
||||
BlockDirtyState get_block_state(Vector3 p_bpos) const;
|
||||
|
||||
static void remove_positions_outside_box(Vector<Vector3i> &positions, Rect3i box, HashMap<Vector3i, BlockDirtyState, Vector3iHasher> &state_map);
|
||||
|
||||
private:
|
||||
// Voxel storage
|
||||
Ref<VoxelMap> _map;
|
||||
|
Loading…
Reference in New Issue
Block a user