1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00: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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;
}