From b073fba3f7a00bc1831c6f9eea86821ae267e429 Mon Sep 17 00:00:00 2001 From: kobewi Date: Thu, 10 Jul 2025 14:50:11 +0200 Subject: [PATCH] Fix lingering grid from TileMapLayer editor --- editor/scene/2d/tiles/tile_map_layer_editor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editor/scene/2d/tiles/tile_map_layer_editor.cpp b/editor/scene/2d/tiles/tile_map_layer_editor.cpp index 43f12473f13..678787f8566 100644 --- a/editor/scene/2d/tiles/tile_map_layer_editor.cpp +++ b/editor/scene/2d/tiles/tile_map_layer_editor.cpp @@ -3667,6 +3667,12 @@ void TileMapLayerEditor::_notification(int p_what) { get_tree()->disconnect("node_removed", callable_mp(this, &TileMapLayerEditor::_node_change)); } break; + case NOTIFICATION_VISIBILITY_CHANGED: { + if (custom_overlay) { + custom_overlay->set_visible(is_visible_in_tree()); + } + } break; + case NOTIFICATION_THEME_CHANGED: { missing_tile_texture = get_editor_theme_icon(SNAME("StatusWarning")); warning_pattern_texture = get_editor_theme_icon(SNAME("WarningPattern"));