mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #109736 from Rubonnek/tilecolfree
Free TileMapLayer debug quadrant meshes when clearing
This commit is contained in:
commit
925fd8a9cc
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()) {
|
if (debug_quadrant->canvas_item.is_valid()) {
|
||||||
rs->free(debug_quadrant->canvas_item);
|
rs->free(debug_quadrant->canvas_item);
|
||||||
}
|
}
|
||||||
|
if (debug_quadrant->physics_mesh.is_valid()) {
|
||||||
|
rs->free(debug_quadrant->physics_mesh);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
debug_quadrant_map.clear();
|
debug_quadrant_map.clear();
|
||||||
_debug_was_cleaned_up = true;
|
_debug_was_cleaned_up = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue