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:
parent
37899f7a14
commit
436b391a80
2 changed files with 17 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue