diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-01-11 11:15:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-11 11:15:42 +0100 |
commit | 2c17af050935bccf17deb6e6489ade64c0af2f73 (patch) | |
tree | 10e52f8ead0b27d9225d2823d0f383c03e11ce6c /scene/resources/tile_set.cpp | |
parent | 6f75866aef113bf776f5df3cc664f872fdb37212 (diff) | |
parent | bea40343ab347d4819922e009a5b738dead057fc (diff) |
Merge pull request #15579 from damarindra/add-receptor-tileset
fix updating tileset list when assign texture and set autotile true
Diffstat (limited to 'scene/resources/tile_set.cpp')
-rw-r--r-- | scene/resources/tile_set.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp index 710612d5f4..4d200f5548 100644 --- a/scene/resources/tile_set.cpp +++ b/scene/resources/tile_set.cpp @@ -309,6 +309,7 @@ void TileSet::tile_set_texture(int p_id, const Ref<Texture> &p_texture) { ERR_FAIL_COND(!tile_map.has(p_id)); tile_map[p_id].texture = p_texture; emit_changed(); + _change_notify("texture"); } Ref<Texture> TileSet::tile_get_texture(int p_id) const { @@ -386,8 +387,8 @@ void TileSet::tile_set_is_autotile(int p_id, bool p_is_autotile) { ERR_FAIL_COND(!tile_map.has(p_id)); tile_map[p_id].is_autotile = p_is_autotile; - _change_notify(""); emit_changed(); + _change_notify("is_autotile"); } bool TileSet::tile_get_is_autotile(int p_id) const { |