TileMapEditor: Fix tile placement.

Fixes #14625
This commit is contained in:
Andreas Haas 2017-12-13 16:46:15 +01:00
parent b110813134
commit 34e489f060
No known key found for this signature in database
GPG key ID: B5FFAE1B65FBD2E1

View file

@ -751,6 +751,7 @@ bool TileMapEditor::forward_gui_input(const Ref<InputEvent> &p_event) {
if (id != TileMap::INVALID_CELL) {
_set_cell(over_tile, id, flip_h, flip_v, transpose);
undo_redo->add_do_method(node, "set", "tile_data", node->get("tile_data"));
undo_redo->commit_action();