Преглед изворни кода

Merge pull request #72020 from vmedea/tile-editor-thread-fix

Fix: use the right tile_set in TilesEditorPlugin::_thread
Rémi Verschelde пре 2 година
родитељ
комит
5f335a7879
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      editor/plugins/tiles/tiles_editor_plugin.cpp

+ 1 - 1
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);