1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-25 05:35:25 +02:00

VoxelArea: Fix missing cacheExtent calls in helpers (#15657)

This commit is contained in:
DS
2025-01-11 16:43:20 +01:00
committed by GitHub
parent 37899f7a14
commit 436b391a80
2 changed files with 17 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ public:
{
MinEdge -= d;
MaxEdge += d;
cacheExtent();
}
/*
@@ -188,6 +189,7 @@ public:
ret.MaxEdge.Y = std::min(a.MaxEdge.Y, MaxEdge.Y);
ret.MinEdge.Z = std::max(a.MinEdge.Z, MinEdge.Z);
ret.MaxEdge.Z = std::min(a.MaxEdge.Z, MaxEdge.Z);
ret.cacheExtent();
return ret;
}