diff options
author | Gilles Roudière <gilles.roudiere@gmail.com> | 2021-05-07 15:41:39 +0200 |
---|---|---|
committer | Gilles Roudière <gilles.roudiere@gmail.com> | 2021-05-07 18:06:17 +0200 |
commit | a3dda2df85bf3e3ef82dbe1c2377640b9f3fd9c0 (patch) | |
tree | cedf0a8411cfc773f63acb1bc702c4cf20008ac5 /scene/gui | |
parent | d81ea631d91bd282b823ab03d68123befe4027c0 (diff) |
Rework the TileSet resource and TileMap nodes:
- Move most properties from TileMap to TileSet,
- Make TileSet more flexible, supporting more feature (several
collision layers, etc...),
- Fusion both the TileMap and TileSet editor,
- Implement TileSetSources, and thus a new way to index tiles in the TileSet,
- Rework the TileSet and TileMap editors completely,
- Implement an editor zoom widget (and use it in several places)
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/item_list.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index 4fddb4b661..0bdae2b118 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -406,6 +406,9 @@ void ItemList::remove_item(int p_idx) { ERR_FAIL_INDEX(p_idx, items.size()); items.remove(p_idx); + if (current == p_idx) { + current = -1; + } update(); shape_changed = true; defer_select_single = -1; |