summaryrefslogtreecommitdiffstats
path: root/scene/resources/tile_set.cpp
diff options
context:
space:
mode:
authorPoommetee Ketson <poommetee@protonmail.com>2018-03-11 21:59:50 +0700
committerPoommetee Ketson <poommetee@protonmail.com>2018-03-23 21:27:30 +0700
commited3b080ca6ebc4361306a786dcc2d45481ee8ed9 (patch)
treea12b5002b5b156385966a8fb170a174d1ffad90d /scene/resources/tile_set.cpp
parentcc34406b5d48c8c09d51c0c8fe6d94b91303745f (diff)
downloadredot-engine-ed3b080ca6ebc4361306a786dcc2d45481ee8ed9.tar.gz
Fix converting to tileset crashes Godot if existing file is not tileset
also make TileSetEditorPlgn tile list updates the preview modulate
Diffstat (limited to 'scene/resources/tile_set.cpp')
-rw-r--r--scene/resources/tile_set.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp
index 4463f98b07..7fdc296bb4 100644
--- a/scene/resources/tile_set.cpp
+++ b/scene/resources/tile_set.cpp
@@ -347,6 +347,7 @@ void TileSet::tile_set_modulate(int p_id, const Color &p_modulate) {
ERR_FAIL_COND(!tile_map.has(p_id));
tile_map[p_id].modulate = p_modulate;
emit_changed();
+ _change_notify("modulate");
}
Color TileSet::tile_get_modulate(int p_id) const {