mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Merge pull request #109736 from Rubonnek/tilecolfree
Free TileMapLayer debug quadrant meshes when clearing
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user