Skip to content

Commit b073fba

Browse files
committed
Fix lingering grid from TileMapLayer editor
1 parent d7cc121 commit b073fba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

editor/scene/2d/tiles/tile_map_layer_editor.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3667,6 +3667,12 @@ void TileMapLayerEditor::_notification(int p_what) {
36673667
get_tree()->disconnect("node_removed", callable_mp(this, &TileMapLayerEditor::_node_change));
36683668
} break;
36693669

3670+
case NOTIFICATION_VISIBILITY_CHANGED: {
3671+
if (custom_overlay) {
3672+
custom_overlay->set_visible(is_visible_in_tree());
3673+
}
3674+
} break;
3675+
36703676
case NOTIFICATION_THEME_CHANGED: {
36713677
missing_tile_texture = get_editor_theme_icon(SNAME("StatusWarning"));
36723678
warning_pattern_texture = get_editor_theme_icon(SNAME("WarningPattern"));

0 commit comments

Comments
 (0)