From 404ab3e2bdcccf1f5d96daa476fba66eff857c8b Mon Sep 17 00:00:00 2001 From: kobewi Date: Sat, 21 Feb 2026 00:10:50 +0100 Subject: [PATCH] Fix error in TileSetEditor --- editor/scene/2d/tiles/tile_set_editor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/scene/2d/tiles/tile_set_editor.cpp b/editor/scene/2d/tiles/tile_set_editor.cpp index 33f7a8dc55..9dd71bab14 100644 --- a/editor/scene/2d/tiles/tile_set_editor.cpp +++ b/editor/scene/2d/tiles/tile_set_editor.cpp @@ -367,7 +367,9 @@ void TileSetEditor::_notification(int p_what) { switch (p_what) { case NOTIFICATION_TRANSLATION_CHANGED: { _update_sources_list(); - _update_patterns_list(); + if (tile_set.is_valid()) { + _update_patterns_list(); + } } break; case NOTIFICATION_THEME_CHANGED: {