From 206c5b05baa517bbf58685cf70ab76d88bac8a40 Mon Sep 17 00:00:00 2001 From: onequid Date: Tue, 6 Jan 2026 20:49:48 +0800 Subject: [PATCH] Fixes pattern corruption in TileMapLayer --- editor/scene/2d/tiles/tile_map_layer_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/scene/2d/tiles/tile_map_layer_editor.cpp b/editor/scene/2d/tiles/tile_map_layer_editor.cpp index 7e9bfc027f..e938cf5b27 100644 --- a/editor/scene/2d/tiles/tile_map_layer_editor.cpp +++ b/editor/scene/2d/tiles/tile_map_layer_editor.cpp @@ -2125,7 +2125,7 @@ void TileMapLayerEditorTilesPlugin::edit(ObjectID p_tile_map_layer_id) { } } - TileMapLayer *new_tile_map_layer = ObjectDB::get_instance(edited_tile_map_layer_id); + TileMapLayer *new_tile_map_layer = ObjectDB::get_instance(p_tile_map_layer_id); Ref new_tile_set; if (new_tile_map_layer) { new_tile_set = new_tile_map_layer->get_tile_set();