Fix debug rendering in TileMapLayer

This commit is contained in:
Gilles Roudière
2025-07-25 11:17:03 +02:00
parent 967e2d499a
commit 8637922926
2 changed files with 29 additions and 2 deletions

View File

@@ -105,6 +105,9 @@ struct CellData {
Vector2i coords;
TileMapCell cell;
// Debug
SelfList<CellData> debug_quadrant_list_element;
// Rendering.
Ref<RenderingQuadrant> rendering_quadrant;
SelfList<CellData> rendering_quadrant_list_element;
@@ -143,6 +146,7 @@ struct CellData {
}
CellData(const CellData &p_other) :
debug_quadrant_list_element(this),
rendering_quadrant_list_element(this),
#ifndef PHYSICS_2D_DISABLED
physics_quadrant_list_element(this),
@@ -157,6 +161,7 @@ struct CellData {
}
CellData() :
debug_quadrant_list_element(this),
rendering_quadrant_list_element(this),
#ifndef PHYSICS_2D_DISABLED
physics_quadrant_list_element(this),