From 89a6c6cd8421504e6f1bba1633c18c914fb7738a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gilles=20Roudi=C3=A8re?= Date: Mon, 11 Oct 2021 14:58:42 +0200 Subject: [PATCH] Fixes set_source_id not updating the next automatic source id --- scene/resources/tile_set.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp index e19ca38b825..f5e52b70e6f 100644 --- a/scene/resources/tile_set.cpp +++ b/scene/resources/tile_set.cpp @@ -171,6 +171,8 @@ void TileSet::set_source_id(int p_source_id, int p_new_source_id) { source_ids.append(p_new_source_id); source_ids.sort(); + _compute_next_source_id(); + emit_changed(); }