ensure all extents are updated when calculating combined extents
This commit is contained in:
@@ -1781,6 +1781,18 @@ void MapTile::recalcCombinedExtents()
|
||||
if (!_combined_extents_dirty)
|
||||
return;
|
||||
|
||||
// ensure all extents are updated
|
||||
{
|
||||
recalcExtents();
|
||||
|
||||
if (Water.needsUpdate())
|
||||
{
|
||||
Water.recalcExtents();
|
||||
}
|
||||
|
||||
recalcObjectInstanceExtents();
|
||||
}
|
||||
|
||||
_combined_extents = _extents;
|
||||
|
||||
auto& water_extents = Water.getExtents();
|
||||
|
||||
@@ -107,7 +107,6 @@ void WorldRender::draw (glm::mat4x4 const& model_view
|
||||
unsigned tile_counter = 0;
|
||||
for (MapTile* tile : _world->mapIndex.loaded_tiles())
|
||||
{
|
||||
tile->recalcObjectInstanceExtents();
|
||||
tile->recalcCombinedExtents();
|
||||
|
||||
if (minimap_render)
|
||||
|
||||
Reference in New Issue
Block a user