mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Free TileMapLayer debug quadrant meshes when clearing
This commit is contained in:
parent
c6d130abd9
commit
261734adb6
1 changed files with 3 additions and 0 deletions
|
|
@ -72,6 +72,9 @@ void TileMapLayer::_debug_update(bool p_force_cleanup) {
|
|||
if (debug_quadrant->canvas_item.is_valid()) {
|
||||
rs->free(debug_quadrant->canvas_item);
|
||||
}
|
||||
if (debug_quadrant->physics_mesh.is_valid()) {
|
||||
rs->free(debug_quadrant->physics_mesh);
|
||||
}
|
||||
}
|
||||
debug_quadrant_map.clear();
|
||||
_debug_was_cleaned_up = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue