Skip to content

Commit 925fd8a

Browse files
committed
Merge pull request #109736 from Rubonnek/tilecolfree
Free TileMapLayer debug quadrant meshes when clearing
2 parents 7cc3f37 + 261734a commit 925fd8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scene/2d/tile_map_layer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ void TileMapLayer::_debug_update(bool p_force_cleanup) {
7272
if (debug_quadrant->canvas_item.is_valid()) {
7373
rs->free(debug_quadrant->canvas_item);
7474
}
75+
if (debug_quadrant->physics_mesh.is_valid()) {
76+
rs->free(debug_quadrant->physics_mesh);
77+
}
7578
}
7679
debug_quadrant_map.clear();
7780
_debug_was_cleaned_up = true;

0 commit comments

Comments
 (0)