summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-10-11 16:18:58 +0200
committerGitHub <noreply@github.com>2021-10-11 16:18:58 +0200
commit91e681fe193a583095557aaeb2ae09b1ffcba7fb (patch)
treee8fc135f20f84f6828684d19b06c920f163bc856 /scene
parenta6414b34e9837b84d708186d1f580bb5a17583cc (diff)
parent89a6c6cd8421504e6f1bba1633c18c914fb7738a (diff)
Merge pull request #53672 from groud/fix_set_source_id
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/tile_set.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp
index e19ca38b82..f5e52b70e6 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();
}