aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/tile_set.cpp
diff options
context:
space:
mode:
authordamarindra2018-01-11 05:45:14 +0700
committerdamarindra2018-01-11 05:50:36 +0700
commitbea40343ab347d4819922e009a5b738dead057fc (patch)
tree744c5ed79a33dcc7ab683accdd341735c6e332eb /scene/resources/tile_set.cpp
parent554e95747c07afa893a2c4c0445370dda57aa7d0 (diff)
downloadgodot-bea40343ab347d4819922e009a5b738dead057fc.tar.gz
godot-bea40343ab347d4819922e009a5b738dead057fc.tar.zst
godot-bea40343ab347d4819922e009a5b738dead057fc.zip
Diffstat (limited to 'scene/resources/tile_set.cpp')
-rw-r--r--scene/resources/tile_set.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp
index 710612d5f..4d200f554 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 {