You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
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