summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-25 11:59:39 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-25 11:59:39 +0100
commit5f335a7879e944393bafcf42cac1065a506869e9 (patch)
treef9eeda3a5d4a51ac6fe1f0c8188a1fd3d906c43a
parentfc400d15627a70c1138bdbfb1ee1f9de472e9ae9 (diff)
parent655b32187f7ab34fe8acc708ef3b3fb18c82f08f (diff)
Merge pull request #72020 from vmedea/tile-editor-thread-fix
Fix: use the right tile_set in TilesEditorPlugin::_thread
-rw-r--r--editor/plugins/tiles/tiles_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tiles/tiles_editor_plugin.cpp b/editor/plugins/tiles/tiles_editor_plugin.cpp
index 19ee0ae98d..77dd0f7793 100644
--- a/editor/plugins/tiles/tiles_editor_plugin.cpp
+++ b/editor/plugins/tiles/tiles_editor_plugin.cpp
@@ -101,7 +101,7 @@ void TilesEditorPlugin::_thread() {
encompassing_rect.expand_to(world_pos);
// Texture.
- Ref<TileSetAtlasSource> atlas_source = tile_set->get_source(tile_map->get_cell_source_id(0, cell));
+ Ref<TileSetAtlasSource> atlas_source = item.tile_set->get_source(tile_map->get_cell_source_id(0, cell));
if (atlas_source.is_valid()) {
Vector2i coords = tile_map->get_cell_atlas_coords(0, cell);
int alternative = tile_map->get_cell_alternative_tile(0, cell);