diff options
author | Gilles Roudière <gilles.roudiere@gmail.com> | 2022-09-16 15:22:50 +0200 |
---|---|---|
committer | Gilles Roudière <gilles.roudiere@gmail.com> | 2022-09-16 15:22:55 +0200 |
commit | 68ffa9a2a19aff114ca96ee5a9caadda008f5723 (patch) | |
tree | 6ed4d02cc7253b9cf2a040b816038f1516ff266c /scene | |
parent | d1b2a191ab752ebd8236e3547e07b6eb3bb1f260 (diff) |
Right-click to erase TileSet terrains and bugfixes
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/tile_set.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp index 9138a82ba8..d2eae4ab7a 100644 --- a/scene/resources/tile_set.cpp +++ b/scene/resources/tile_set.cpp @@ -5276,6 +5276,7 @@ void TileData::set_terrain_set(int p_terrain_set) { } if (tile_set) { ERR_FAIL_COND(p_terrain_set >= tile_set->get_terrain_sets_count()); + terrain = -1; for (int i = 0; i < 16; i++) { terrain_peering_bits[i] = -1; } |