Fix converting to tileset crashes Godot if existing file is not tileset

also make TileSetEditorPlgn tile list updates the preview modulate
This commit is contained in:
Poommetee Ketson 2018-03-11 21:59:50 +07:00
parent cc34406b5d
commit ed3b080ca6
6 changed files with 63 additions and 18 deletions

View file

@ -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 {