Skip to content

Commit

Permalink
Fixed error when removing a texture from a TextureSet
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Jul 30, 2023
1 parent a481edb commit 5d44744
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ This is a high-level changelog for each released versions of the plugin.
For a more detailed list of past and incoming changes, see the commit history.


1.7.2
------

- Fixed error when removing a texture from a TextureSet


1.7.1
------

Expand Down
2 changes: 1 addition & 1 deletion addons/zylann.hterrain/hterrain_texture_set.gd
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func remove_slot(i: int):
if i == -1:
i = get_slots_count() - 1
for type in TYPE_COUNT:
_textures[type].remove(i)
_textures[type].remove_at(i)
emit_changed()


Expand Down

0 comments on commit 5d44744

Please sign in to comment.